Set tolerance for direction

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) Xavier
• DeepStream Version 5.1.0
• JetPack Version (valid for Jetson only) 4.5.1
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)

I find that the tolerance in nvdsanalitycs is quite big. For example the following configuration:
[direction-detection-stream-1]
enable=1
direction-M1=277;148;329;126;
direction-M2=309;29;186;67;
direction-M3=479;164;382;146;
class-id=2;3;4;5;6;7;8;9;10;11;

Will always provide:
object 360121093530320910 is moving in M3 id : 14
even if the object is following direction in M2

How can I set some tolerance in direction in order to distinguish between both movements?

If direction-M3 is missing then object direction is correctly defined, but I need to detect object in both directions.

Hi @somedev ,
You can configure the mode as below

https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvdsanalytics.html

mode=loose
mode=strict
mode=balanced

This is not working.
Adding mode=strict doesn’t change the behavior.

Here is the example:

[direction-detection-stream-0]
enable=1
direction-M1=277;148;329;126;
direction-M2=309;29;186;67;
direction-M3=479;164;382;146;
direction-M4=300;229;186;67;
direction-M5=339;129;186;67;
mode=strict
class-id=-1;

The direction angle are : M2 = 162.83; M4 = -125.13; M5 = -157.94
The object is strictly following the direction defined by M2 but M5 is reported.
If I remove M5 the object is correctly reported as M2.
But if I remove M2 the object is reported as M5.

So something is very wrong here and the module is useless for movements with angle diff less then 90 degree.

There must be way to set specific tolerance , let’s say ±15 or ± 30 etc.

There is no update from you for a period, assuming this is not an issue any more.
Hence we are closing this topic. If need further support, please open a new one.
Thanks

Hi @somedev ,
Sorry for delay!
Is it possible to provide a reproduce program, including the test video?

Thanks!

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