How do I set the detection threshold of nvinfer in the source code?

Hardware Platform (Jetson / GPU) Jetson Nano
• DeepStream Version 6.0
• JetPack Version (valid for Jetson only) 4.6
• TensorRT Version 8.0.1
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs) questions

I am looking for a way to set the detection threshold of the nvinfer at the code level.

The code I tried is as follows.
But this has failed.
(object class ‘GstNvInfer’ has no property named ‘threshold’)

pgie = gst_element_factory_make(“nvinfer”, “primary-nvinference-engine”);
g_object_set(G_OBJECT(pgie), “threshold”, 0.5);

Can you tell me how?

nvinfer plugin is opensource. in gst_nvinfer_parse_class_attrs, you can see “threshold” corresponds plugin’s preClusterThreshold property.

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