Lines, zones and speed

Draw counting lines, zones and speed lines on the camera picture, choose directions, and set dwell, crowd, tailgating and speed alarms.

CountVue LiveCountVue Survey

Lines, zones and speed lines (together, the camera's rules) tell CountVue what to count. Draw them on the live picture (Live) or on the video (Survey). Changes apply at once when you press Save rules; Revert throws away unsaved changes.

The toolbar above the picture:

Button Adds
+ Line A counting line
+ Zone A zone (polygon)
+ Speed A pair of speed lines A and B
ROI The region of interest: the part of the frame that is analyzed
Min object size A size filter for small objects

Click a line or zone to select it; its settings appear in the panel next to the picture. Drag the ends or corners to move them. Press Delete or the Delete button to remove it.

Lines

A line counts the objects that cross it. Use lines for entrances, doors, roads, lanes and sidewalks.

  • An object is counted when the bottom center of its box crosses the line, which is roughly where feet or wheels touch the ground. Draw the line on the ground, not at head height.
  • Make the line cover the whole passage, from wall to wall or curb to curb. A line that ends in the middle of a lane misses objects that pass beside it.
  • Give the line a clear name. The name appears in reports, alerts and webhooks.

Directions

The two arrows on a line show direction 1 and direction 2. Each direction is counted separately, so one line gives you in and out, or northbound and southbound.

Setting What it does
Count direction 1 Count objects crossing in direction 1
Count direction 2 Count objects crossing in direction 2
Tailgating alarm Raise a Tailgating event when two objects cross within a second of each other (the interval is an advanced parameter)

Turn a direction off to count only one way, for example only cars entering a car park.

Not sure which way is which? Leave both directions on, watch a few objects cross, and look at which counter goes up. Swap the ends of the line to swap the directions.

Zones

A zone is a polygon on the ground. It counts objects that enter and leave it, how many are inside, and how long they stay. Use zones for queues, waiting areas, parking spaces, shop areas and crossings.

  • Drag ⊕ on an edge to add a corner. Right-click a corner (or double-tap it on a touch screen) to remove it.
  • As with lines, an object is inside when the bottom center of its box is inside.
Setting What it does
Dwell alarm after, s Raise an Object dwell event when an object stays longer than this (0 = off)
Crowd: objects Raise a Crowd appear event when at least this many objects are inside (0 = off)
Crowd: for, s … and stay there for this long

Zones also feed the occupancy, queue and dwell time reports and the heatmap in the Portal. See Report types.

Speed lines

A speed measurement uses two lines, A and B, across the road, and the real distance between them.

  1. Press + Speed. Two lines appear.
  2. Put line A and line B across the road at two points whose distance you know, such as road markings or lamp posts.
  3. Enter Distance, m, the real distance between them in meters.
  4. Choose the Direction to measure: A → B, B → A or both.
  5. Optionally set a Speed threshold, km/h to record only objects faster than that (0 = all).

Objects that cross both lines get a Speed event with their speed. The farther apart the lines (within the clear view of the camera), the more precise the speed.

Region of interest (ROI)

By default the ROI is automatic: CountVue analyzes only the area around your lines and zones, plus a margin. This lets small, distant objects get more detail from the neural network and saves CPU.

Press ROI to set the rectangle by hand. Drag its corners or edges. Make it large enough to hold whole objects near your lines and zones; a large vehicle cut by the ROI edge may be missed. Reset to auto ROI goes back to automatic.

Minimum object size

AI presets usually do not need it. With motion presets, or to ignore small things (birds, leaves, distant objects), press Min object size and drag the ends of the size line to match the smallest object you want to count. Objects smaller than that in both width and height are ignored. Turn off keeps the line for later.

Counters

The Today panel shows a counter for every line, zone and speed line since midnight, split by direction and object type. Reset on a counter starts it from zero; events already recorded are kept. Counters reset by themselves at midnight.

Good practice

  • Count where objects are clearly separated and fully visible, not where they overlap the frame edge.
  • For an entrance, draw the line a little inside or outside the door, where people walk straight through, not where they stop.
  • For roads, draw one line per direction of traffic, or one line with both directions.
  • Changing lines does not change counts already recorded. If you move a line in the middle of a day, the report for that day mixes both positions.
  • If a PTZ camera turns, the lines stay where they were drawn on the picture: they will count something else. Use PTZ presets to return to the counting position.

Updated · View as Markdown · Something missing? Ask us

Cookie settings

Choose which cookies we may use. Strictly necessary cookies are always on because the site does not work without them. See the cookie policy for the full list.

Strictly necessary Always on

Security, spam protection of forms (Google reCAPTCHA), admin sign-in and remembering your cookie choice.

Google Analytics 4: which pages are visited, how visitors arrive and how long they stay. IP addresses are not stored. No advertising or personalisation.