Dual line counting¶
Dual line counting is a query that counts the number of objects crossing exactly two lines. Intended for scenarios where you need to count objects crossing two lines in a specific direction, such as people entering and exiting an area. It can also be used to monitor traffic via two-line entry points.
- Go to Video Search Advanced Search to set up a Search for stopped objects.
Dual line counting is currently only available as a Video Search, not as a Live Rule.
Select Source¶
Select the video you want to run the Search on from the left sidebar. The thumbnail image of the chosen video is displayed here.
Time interval Advanced Search only¶

Select a time frame for the analytics to run.
- Entire video: Run the Search on the entire video duration, from the start timestamp to the end timestamp (set during video registration).
- Custom range: You can select a custom start and end date and time to run the Search on. Type the desired date and time or select them by clicking the calendar icon.
Lines¶

Select one or multiple object types you want to search for.
- Line definition: Draw two lines on the canvas to define the area where the objects will be detected. The lines should be drawn perpendicular to the direction of traffic flow. Left-click on the video frame to draw the first line, then click Line 2 left-click to draw the second line.
Expert Settings
Ticking the Expert Settings box will open additional configuration options for the Search, such as more object types to choose from. Additional parameters:
- Sensitivity (Medium by default): The sensitivity level of the Search. The higher the sensitivity, the more likely it is to detect objects, but it may also result in more false positives.
Counting settings¶
- Maximum time between line crossings (in seconds, 10 by default): The maximum amount of time that can pass between crossing the first and second line for the same object to be counted. Adjusting this setting can help ensure that only objects that cross both lines within a reasonable time frame are counted.
Expert Settings
-
Line crossing order: This setting allows you to specify the direction of movement you want to count. Select whether to count objects that cross Line 1 first and then Line 2, or objects that cross Line 2 first and then Line 1, or both.
-
Time window (in seconds, 60 by default): The time window used to determine whether two line crossings belong to the same object. If an object crosses the first line and then crosses the second line within this time window, it will be counted as a valid crossing.
Results
All done - Clicking Search will immediately start the analysis and opens the Search Results screen.
Live Rules will produce real-time detections , and the results will be displayed in the Alarms screen. If an alarm integration is set up, an alarm will also be triggered in the integrated system.