Virtual tripwire

Line crossing detection on your existing CCTV

Woodcock AI lets you draw a line on any camera view, along a fence top, across a gate or along a roof edge, and sends an alert when a person or vehicle crosses it. You choose which direction counts and when each camera is armed, and the alert arrives by app and email with the clip, so you can see who crossed and act.

Storage yard at blue hour behind a green palisade fence, with a teal detection line running along the tops of the fence posts from point A to point B and an amber arrow pointing into the yardPalisade boundary at dusk
Woodcock AI app alert on a phone: a white van boxed behind a palisade gate after crossing the yard line outbound at 02:37, with a plain-English description, watch clip and view live buttons and a timeline
Woodcock AI app screen listing three detection lines, east fence, roof edge and yard exit, each with its direction, schedule and an on or off switch, and a note that animals at the fence are now treated as routine
AI descriptionA white van crossed the yard line heading for the closed gate.
Direction and scheduleInbound only, armed 18:00 to 07:00.
The basics

What line crossing detection is

Line crossing detection, often called a virtual tripwire, is a rule drawn on a camera view. You place a line from one point to another where crossing it matters, and the system raises an alert when a person or vehicle crosses from one side to the other.

The idea is simple, and it maps neatly onto how sites are actually protected. Most security questions on a yard, a compound or a warehouse are about boundaries. Did anyone come over the fence? Did a vehicle leave through the gate after we locked up? Did someone get onto the roof? A line answers each of those questions directly, because it sits exactly where the boundary is on the picture.

What makes a line useful, rather than a source of noise, is what decides that something crossed it. Older camera analytics compare pixels: if enough of the picture changes on one side of the line and then the other, they call it a crossing. That is why a tripwire on a basic recorder can be set off by a swaying branch, a shadow or a cat. Woodcock AI only counts the people and vehicles it has detected in the scene and follows them from frame to frame, so a crossing means an object you care about has moved from one side of the line to the other.

Diagram of a detection line drawn on a camera view: a line from point A to point B along a fence, an arrow showing the direction that alerts, one track crossing in the arrow direction marked as an alert, and one track crossing the other way marked as ignored A B Direction that alerts Crossed this way: alert Crossed the other way: ignored Detection line on a fence topOnly people and vehicles count as crossings Anatomy
A line, its direction and two tracksThe arrow sets which way counts. One track crosses with the arrow and alerts; the other crosses against it and is ignored.

Every line has three settings. The position is where the line sits on the view, from point A to point B. The direction is which way a crossing has to go before it counts: with the arrow, against it, or either way. The schedule is when the camera is armed. Get those three right and a single line can replace hours of watching a fence on a monitor.

Line crossing is one part of Woodcock AI's intrusion detection. It runs on the same cameras, alongside polygon detection zones and, where a camera needs it, smoke and fire detection, so one view can do several jobs at once.

Choosing the right rule

Line crossing vs polygon zones vs motion detection

Lines, polygon zones and motion detection answer different questions. Picking the right one for each camera is the difference between alerts people trust and alerts people mute.

Motion detection reacts to change anywhere in the picture, or in a box drawn over it. It cannot tell a person from a moving shadow, so outdoors it reacts to weather, headlights, insects at night and trees in the wind. It is the reason many sites switched their camera alerts off years ago.

Line crossing asks one precise question: did a person or vehicle cross here, and which way? It suits boundaries and pinch points, where a crossing is the event you care about. A line says nothing about what is already inside an area, so on its own it will not tell you that someone has been in the yard since before it was armed.

Polygon zones ask whether a person or vehicle is inside an area. In Woodcock AI you draw polygon detection zones point by point, so the zone can follow the real shape of a compound, a stockpile or a fence running away from the camera. Most competitors offer only boxes or lines; polygons let a zone take in exactly the ground that matters.

Three panels comparing motion detection, which reacts to any change across the whole picture, line crossing, which reacts when a person or vehicle crosses a line in a set direction, and a polygon zone, which reacts when a person or vehicle is inside an outlined areaMotion detectionAny change in the picture.Branches, rain and headlights too.Line crossingA crossing, in a set direction,by a person or vehicle.Polygon zoneAnyone inside an area yououtline, point by point.Three rules side by side
Motion, a crossing rule and an outlined areaMotion reacts to anything that changes. The middle panel needs a person or vehicle to cross in a set direction; the right one needs them inside the shape.
QuestionMotion detectionLine crossingPolygon zone
What triggers itAny change in the pictureA person or vehicle crossing the lineA person or vehicle inside the area
DirectionNoneArrow direction, reverse or bothNot applicable
Best forIndoor rooms with nothing movingFences, gates, roof edges, entriesCompounds, stockpiles, yards
Weak spotsWeather, shadows, headlights, animalsSays nothing about who is already insideNeeds a clear view of the whole area

In practice, the strongest set-ups use lines and zones together. A line across a yard gate set to inbound only catches the moment someone arrives; a polygon over the yard behind it catches someone who was already inside, or who came over a stretch of fence the line does not cover. The free site assessment looks at each view and suggests which rule, or which mix, fits it.

Direction-aware lines

Alert on the crossings that matter, ignore the ones that do not

Most gateways are used in both directions, and only one of them is a problem out of hours. Direction-aware lines let you alert on that one.

When you draw a line, an arrow appears on one side of it. You then choose whether the line alerts on crossings in the arrow direction only, in the reverse direction only, or both ways. The choice changes what the line is for. On a perimeter fence, inbound only means anyone climbing in raises an alert, while a security patrol walking the inside of the fence and stepping back over a low kerb line does not. On a yard exit, outbound only means a van or a plant trailer heading out at three in the morning raises an alert, while the night delivery arriving through the same gate does not.

Night view through a palisade fence into a yard, with a white van boxed in red behind the closed gate, a dotted amber trail showing its path across the yard, a teal line from A to B across the yard and an amber arrow pointing towards the gateOutbound rule
A van crosses the yard exit lineHeading for the closed gate after hours. The arrow sets which way counts, so this crossing alerts.
Arrow direction onlyThe usual choice. Point the arrow into the site on a fence, or out of the yard on an exit.
Reverse onlyThe same line, the opposite job. Handy when one camera covers a gateway from the other side.
Both waysFor roof edges, cable routes and anywhere nobody should be crossing at all.

Because the AI follows each person or vehicle from frame to frame, it knows which side of the line it started on and which side it ended up on. A vehicle that pulls up to the line and reverses away has not crossed it; a person who climbs over and drops down on the other side has.

Interactive

Draw a line and see what would alert

Drag across either camera view to draw your own line, then change the direction or flip the arrow. The result underneath tells you whether that line would raise an alert for what is actually in the frame.

Night view through a palisade fence and closed gate into a yard, with a white van parked inside behind the fence
Night view of a closed mesh double gate between white hoarding panels under a floodlight, with nobody and no vehicles in view
Drag across the picture to draw your own line

Alert: vehicle crossed the line in the arrow direction, heading for the gate. The clip would go to the app and by email.

The yard camera shows a van that has driven towards the gate; the dotted trail is its recent path. The gate camera has nothing in view, so whatever line you draw, nothing is detected and no alert is sent. Example frames, not live footage.

Where lines go

Typical placements: fences, gates, roof edges, yard entries and cable routes

A line works best where crossing it can only mean one thing. On most industrial and commercial sites, that gives five obvious places to start.

Plan of a typical industrial yard showing five detection lines: along the perimeter fence, across the main gate, along the roof edge of the warehouse, across the entry to the inner yard and beside a buried cable route Warehouse Inner yard Main gate 1Fence line2Roof edge3Gate4Yard entry5Cable route Site plan
Five lines on a typical industrial yardEach one sits on a boundary or pinch point: the fence, the main gate, the warehouse roof, the inner yard and a buried cable run.
  1. 1Fence linesA line along the tops of the fence posts catches anyone climbing over. Set it inbound only, so people walking the inside of the fence on a patrol do not count, and keep the line just above the fence so traffic on the road beyond never touches it.
  2. 2Gates and gatewaysA line across the gate catches every vehicle and person coming through it. Outbound only suits a yard where the worry is stock or plant leaving at night; inbound only suits a site that is closed to visitors after hours.
  3. 3Roof edgesFlat roofs over warehouses and units are reached from bins, skips, lean-to buildings and stacked pallets. A line along the parapet or the gutter catches someone coming over the edge, and nothing on the roof itself moves at night.
  4. 4Yard entriesInside the boundary, a line across the entry to an inner yard, a compound or a loading bay separates the busy areas from the ones that should be empty. It works well with a polygon zone over the yard behind it.
  5. 5Cable routesBuried and surface cable routes, cable trenches and the ground beside a substation fence are targets for metal theft. A line beside the route catches anyone crossing to reach it out of hours.

Placement on the picture matters as much as placement on the site. Draw a fence line along the tops of the posts, a little above them, rather than along the ground, so a person climbing over crosses it cleanly and a car on the road behind never does. Keep lines away from the edges of the view, where people and vehicles are only partly in the picture, and make sure the area around the line is lit or covered by infrared at night.

Flat warehouse roof at night under a single floodlight, with plant units and ladder hoops, and a teal detection line running along the top of the parapet from A to B with an amber arrow pointing onto the roof and a card saying the roof edge is armed from 19:00 to 06:00Parapet tripwire
Flat warehouse roof at nightOne line runs along the edge, armed through the night, for anyone climbing up from the yard below.

Roofs are an underrated place for a line. Lead and copper are still stripped from roofs, rooflights are a route into buildings, and a flat roof is often reached from bins, skips or a stack of pallets against the wall. A camera on a neighbouring building or high on a wall that looks along the roof can watch the edge with a single line, and on a roof at night nothing should be crossing it. Our metal theft prevention guide covers roofs, cable and the wider pattern of metal theft.

Schedules

Per-camera schedules, so lines are armed only when they should be

A gate line that alerts every time a delivery arrives during the day is a line someone will switch off. Schedules keep each camera quiet while the site is working and armed once it is not.

Each camera in Woodcock AI has its own schedule. The fence camera can be armed from six in the evening until seven in the morning on weekdays and all weekend; the roof camera every night; the yard exit camera only once the gate is no longer staffed. Bank holidays and shutdowns are easy to handle: change the schedule in the app, for example to keep the gate line armed all day on the bank holiday Monday.

LineWeekdaysWeekends
East fenceInbound only
Roof edgeBoth directions
Yard exitOutbound only
Main gateInbound only
Armed hours
Example week for four detection linesTeal shows when each camera is watching. The fence and main gate stay on all weekend; the roof and exit only overnight.

Schedules sit alongside the other rules on the same camera rather than replacing them. A camera can run smoke and flame detection around the clock while its line is armed only out of hours. That matters on sites such as waste and recycling yards, where a fire is a risk at any time but a person at the fence is only a concern once everyone has gone home.

Alerts

Every crossing arrives with the clip

An alert that says only that a line was crossed leaves someone guessing. A Woodcock AI alert shows them what crossed it, which way and when, so they can decide in moments whether to call the police, send a keyholder or ignore it.

Alerts go out by the Woodcock AI app, as a push notification with the clip, and by email. Each one carries a short plain-English description of what the camera saw, so the person on call can read the situation before they even press play. Alerts to a monitoring centre (ARC) and phone-call alerts are available as optional add-ons. You choose who receives alerts for each camera and each time of day, so fence alerts can go to the site manager in the evening and to the monitoring centre overnight.

App with the clipA push notification with the clip and a plain-English description, to the people on the rota for that camera and time.
EmailThe same alert, with the clip, by email, so there is a record outside the app.
Monitoring centre (optional)Alerts passed to an alarm receiving centre, for sites that want trained operators watching out of hours.
Phone-call alerts (optional)An automated call to the person on call, for the crossings that cannot wait.
Woodcock AI Alerts02:37
Line crossed · vehicle · Yard exit
Thumbnail of the alert clip: a white van boxed in red behind a palisade gate, below a teal detection line

A white van has driven across the yard towards the closed gate with its headlights on. It crossed the yard exit line outbound and stopped behind the gate.

Watch clipView live
Inbox copy
The same alert by emailDescription, thumbnail and buttons to watch the clip or open the live view, kept as a record outside the app.

Every alert is saved with its clip in the event log, and you can ask your cameras questions in everyday language afterwards, such as whether any vehicle used the yard exit after midnight, to pull out the footage the police or your insurer will want.

Fewer false alarms

Self-learning AI that knows a fox from a trespasser

The quickest way to ruin a line is to let it alert on things nobody cares about. Woodcock AI is built to learn what is normal on each camera, so the alerts that reach your phone are the ones worth looking at.

Each camera gets a model fitted to its own scene, trained on hours of that camera's footage where nothing happened. That no-incident footage is useful in its own right: it teaches the model what the fence line looks like in rain, in fog, under headlights from the road and at three in the morning on infrared. On top of that, every detection has a feedback button. Mark an alert as not useful and the feedback goes into retraining for that camera, so animals that cross the fence every night, or a flag that flaps across the line in the wind, stop raising alerts.

Black and white infrared view of a chain-link fence with concrete posts and barbed wire at night, with a fox walking along the base of the fence boxed in teal and labelled animal, a teal detection line along the fence base and a card saying it was learned as routine and no alert was sentWildlife ignored
A fox walks the fence on infraredIt crosses the base line, but this camera has learned that animals here are routine, so no alert is sent.

This is the part of the system that has taken years to build. Rather than one generic model for every site, Woodcock AI builds detection around each scene, so a line on a hedge-lined fence in the countryside and a line on a floodlit gate in a city yard each learn their own normal. Read more about self-learning AI, and for practical fixes to lenses, lighting and night views, see how to reduce CCTV false alarms.

Existing cameras

Works on the ONVIF and RTSP cameras you already have

You do not need cameras with built-in tripwire analytics. Woodcock AI runs line crossing on the video itself, so it works with most IP cameras and recorders, whichever brand they are.

Woodcock AI connects to your cameras or recorder over ONVIF or RTSP, the standard ways IP cameras share their video, through an on-site edge server or the cloud. Many recorders already have a basic tripwire setting, but it usually runs on pixel changes and has to be set up camera by camera on each brand's own menus. Running lines in Woodcock AI puts every camera, on every site, into one set of rules, one alert format and one event log.

Add a cameraStorage yard
Camera nameYard exit
ConnectionONVIF · found on the recorder
Stream addressrtsp://192.168.1.64:554/stream1
ConnectedNight view checkedReady for lines
Setup screen
Connecting a yard camera by ONVIFFound on the recorder, stream address confirmed and the night view checked, before any lines are drawn.

Not every existing view suits a line. A camera that only sees a gate from far away at night, or one with a dirty dome or a failed infrared lamp, will struggle whatever software runs on it. The free site assessment checks each view and tells you plainly which are ready, which need a small change such as a better angle or extra lighting, and where a new camera would make the biggest difference. If you need more cameras, we offer design, supply and install, from site survey and design through installation and commissioning to go-live and ongoing support.

How to set it up

How to set up line crossing on your cameras

Setting up a line takes minutes per camera once the cameras are connected. Most of the thinking is about where the lines go and who should hear about them.

  1. Free site assessment

    We look at your camera views, recorder and network connection, and agree where lines would help: fences, gates, roof edges, yard entries and cable routes.

  2. Connect your cameras

    Woodcock AI connects to your existing IP cameras or recorder over ONVIF or RTSP, through an on-site edge server or the cloud.

  3. Draw the lines

    On each camera view, place a line from point A to point B where crossing it matters, along the top of a fence or across a gateway.

  4. Set the direction

    Choose whether the line alerts on crossings in the arrow direction, the reverse direction or both ways.

  5. Set the schedules and alerts

    Arm each camera for the hours that matter and choose who gets each alert by app and email, with the clip. Add a monitoring centre or phone-call alerts if needed.

  6. Let it learn your site

    The model on each camera is fitted to its scene, and the feedback button on every detection goes into retraining for your site.

Installers and security companies can do all of this for their customers through the installer programme, then manage every site from one place. The same approach works across construction sites, industrial sites and remote sites such as solar farms and battery storage. Read how it works for the technical detail.

FAQ

Line crossing questions

Short answers on tripwires, direction, schedules and false alerts. More in the Woodcock AI FAQ.

What is line crossing detection?

Line crossing detection raises an alert when a person or vehicle crosses a line you draw on a camera view. You place the line where crossing it matters, such as along the top of a fence, across a gateway or along a roof edge, choose which direction counts and when the line is armed, and Woodcock AI sends an alert with the clip when it is crossed.

Is line crossing the same as a virtual tripwire?

Yes. Virtual tripwire, tripwire detection, line crossing and cross-line detection are different names for the same idea: an invisible line on the camera view that triggers an alert when something crosses it. The difference between systems is in what decides that something crossed. Woodcock AI only counts people and vehicles that it has detected in the scene, so moving shadows, rain and swaying branches crossing the line do not raise alerts.

Should I use a line or a polygon zone?

Use a line when the question is whether something crossed a boundary, a gateway or an edge, and the direction matters. Use a polygon detection zone when the question is whether something is inside an area, such as a compound, a stockpile or a stretch of yard. Many cameras use both: a line on the gate and a polygon over the yard behind it.

Can a line alert in one direction only?

Yes. Every line has a direction setting. It can alert only when something crosses in the direction of the arrow, only in the reverse direction, or both ways. A yard exit line set to outbound catches a vehicle leaving after hours, while staff walking in through the same gateway in the morning do not raise an alert.

Will foxes, birds and headlights set it off?

They should not. The AI looks for people and vehicles, not movement, so headlights sweeping across a fence or rain on the lens do not count as a crossing. Each camera has a model fitted to its own scene and trained on footage where nothing happened, and the feedback button on every detection goes into retraining, so animals that cross your fence line at night are learned as routine.

Does it work with my existing cameras?

Usually, yes. Woodcock AI works with most IP cameras and recorders over ONVIF or RTSP, so line crossing can run on the cameras you already have. The free site assessment checks each view, especially at night, and tells you which cameras suit a line and which would need to be moved or added.

Can each line have its own schedule?

Yes. Each camera has its own schedule, so a line on the yard exit can be armed overnight, a roof-edge line every night and a fence line all weekend. Schedules can be changed in the app, for example to keep the gate line armed all day on a bank holiday.

How are line-crossing alerts sent?

By the Woodcock AI app, as a push notification with the clip and a plain-English description of what the camera saw, and by email, to the people you choose for each camera and time. Alerts to a monitoring centre (ARC) and phone-call alerts are available as optional add-ons.

Can my installer set up line crossing for us?

Yes. Installers and security companies can connect your cameras, draw the lines and set the schedules through the installer programme. If you would rather we handle everything, we offer design, supply and install, from site survey to go-live and ongoing support.

Next step

Find out where lines would help on your site

A free site assessment reviews your camera views on fences, gates, roofs and yard entries, and confirms what is supported before anything is set up.

Free site assessment