How to add more lines in application

Hardware Platform (Jetson )
DeepStream Version 6.1

I am trying to add two parallel line using below configuration.

[line-crossing-stream-0]
enable=1
#Label;direction;lc

line-crossing-Entry=549;326;351;483;166;310;1105;425;
line-crossing-Exit=351;483;549;326;166;310;1105;425;

class-id=-1
#extended when 0- only counts crossing on the configured Line
#1- assumes extended Line crossing counts all the crossing
extended=1
#LC modes supported:
#loose : counts all crossing without strong adherence to direction
#balanced: Strict direction adherence expected compared to mode=loose
#strict : Strict direction adherence expected compared to mode=balanced
mode=loose

[line-crossing-stream-1]
enable=1
#Label;direction;lc

line-crossing-Entry=549;326;351;483;466;315;1005;420;
line-crossing-Exit=351;483;549;326;466;315;1005;420;
line_color=0.75;0.25;0;1

class-id=-1
#extended when 0- only counts crossing on the configured Line
#1- assumes extended Line crossing counts all the crossing
extended=1
#LC modes supported:
#loose : counts all crossing without strong adherence to direction
#balanced: Strict direction adherence expected compared to mode=loose
#strict : Strict direction adherence expected compared to mode=balanced
mode=loose

But the second line is not working, Help me what I am missing.

could you elaborate on “not working”? what is the whole media pipeline?

Hi fanzh,
I have attached the pipeline configuration and nvdaanalytics configuration.
config_pipeline.txt (4.8 KB)

nvdaanalytics_config.txt (1.7 KB)

Now the issue is I want to add parallel line to the existing line Entry and Exit.
so first what is did i have added the new configuration line-crossing-stream-1 same as line-crossing-stream-0 and change the cooridnates.
and run the test and draw the output but it is not working.
Now second time i have removed the line-crossing-stream-1 and added the new line in the same line-crossing-stream-0 by renaming the name .
Now it is drawing the line.
But I have confusion as per documentation that for new line we can add by below
line-crossing-stream-] or we can add new line in the same stream configuration.

is the issue fixed?

line-crossing-stream-0 is for stream 0. line-crossing-stream-1 is for stream 1.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.