Line Crossing Best Practices
Accurate Line Crossing Setup
- Do not rely on the visible box alone
Be aware that line crossing is triggered by the bottom center of the detection box (person/vehicle). Draw lines with this in mind to ensure accurate event triggering.
Example: The bottom center of the person detection box crosses the line drawn across where traffic enters and exits.

- Avoid placing lines too close to frame edges
Position lines with enough space inside the scene. Placing them at the very edge can result in objects being detected as already past the line.
- Do not place lines directly in doorways or tight entry points
This can cause detection boxes to appear beyond the line too quickly, leading to missed or inaccurate events.
- Ensure proper camera angle and positioning
Cameras should be angled to clearly capture movement across the line, not directly facing traffic head-on.
- Minimize object overlap (stacking)
Avoid views where people or objects stack on top of each other (e.g., straight-on entrance views), as this reduces tracking accuracy.
- Optimize field of view for tracking movement
Position the camera so motion occurs across the frame rather than directly toward or away from it for better line-cross detection.
CAUTION: The person detection boxes stack when the camera views an exit straight on with traffic moving directly away.

Keep in Mind
- Line crossing accuracy depends heavily on how detection zones and camera perspectives are configured.
- Small adjustments to placement and angle can significantly improve detection reliability.
