Please provide complete information as applicable to your setup.
• Hardware Platform - dGPU - rtx4000 ADA
• DeepStream Version - 7.1
• TensorRT Version - v100300
• NVIDIA GPU Driver Version - 560.35.05
• Issue Type - question / bug?
We are seeing inconsistent line crossing behavior with both entries and exits at all of our installations. These inconsistencies take the form of missed entries/exits or doubled or tripled counts.
In order to verify, we captured 8 hours of video in situ and edited out all of the idle scenes producing a 15min crossing-dense video. We then streamed the edited video to the production pipeline. Through our monitoring interface, we then created a video with bounding boxes and line crossing counts “burned in” visually.
We manually reviewed and annotated all of the line crossing “misses”. Here is a link to a recording showing examples of missed counts.
This sample video appears to be low fps but that is an artifact of how we had to record the counts and the bounding boxes. In reality, the pipeline is running at a solid 15fps. The clip features excerpts of about 4 hours of traffic. It is incorrectly registering ~10-15% of all line crossings consistently.
A few notes:
- We have rock solid detection and tracks (tracker-ids are not changing around the line crossings). We have confirmed the object localization and tracking accuracy stability externally. (We stream from the deepstream pipeline at the edge to our cloud infra and store full inference data separately. We are able to pull this data and use math to recreate the crossing in python
- We’ve experimented extensively with
extendedandmodeoptions to no avail - We understand there is a requirement to have an approach angle > 30deg. This is one of the reasons we later tested with multiple lines [1]
- We are assuming the bottom center of the bbox is used for analytics calculations [1] [2]
As a test, we set up several line crossings in order to help us understand the behavior. In short, we have a “single” line-segment line crossing and a 5-segment multi-line crossing. Our understanding is that most entries or exits would cross both the “single” line and one of the “multi” line crossing segments.
It’s a little easier to see here (there are both entry and exit lines but only entry is shown here
[line-crossing-stream-0]
enable=1
mode=strict
extended=0
line-crossing-multixx-Entry-0=1055;521;919;668;902;652;936;683
line-crossing-multixx-Exit-0=783;814;919;668;936;683;902;652
line-crossing-multixx-Entry-1=1025;502;957;690;936;683;978;698
line-crossing-multixx-Exit-1=888;878;957;690;978;698;936;683
line-crossing-multixx-Entry-2=1007;497;1009;697;978;697;1040;697
line-crossing-multixx-Exit-2=1011;897;1009;697;1040;697;978;697
line-crossing-multixx-Entry-3=960;513;1055;689;1041;696;1069;681
line-crossing-multixx-Exit-3=1150;865;1055;689;1069;681;1041;696
line-crossing-multixx-Entry-4=950;517;1085;664;1068;680;1102;648
line-crossing-multixx-Exit-4=1220;811;1085;664;1102;648;1068;680
line-crossing-singlexx-Entry-5=999;450;1001;650;888;652;1114;649
line-crossing-singlexx-Exit-5=1004;850;1001;650;1114;649;888;652
Continuing the testing, we ran the crossing-dense video through the pipeline again and tested a config with both the single and 5-segment multiline. Long story short, even though the individual lines are short, we are registering line crossings at a high level on most of the very small segments. In the chart below, the green and yellow lines represent entries/exists for the single horizontal line in the drawing above. The blue and orange lines represent the sum of the entries/exits for all of the segments in the multi line.
Below are charts of just the 5-segment “multi” line
It appears to act like the detection lines are much longer than shown (image the detection lines extended further in both directions.)
This behavior is repeatable in multiple locations. Granted, we use the same deepstream pipeline and settings, base systems, system images, etc.
Any help would be greatly appreciated.







