Setting config values via code and not through config file

Please provide complete information as applicable to your setup.

• Hardware Platform (Jetson / GPU) RTX 2060
• DeepStream Version 5.0
• JetPack Version (valid for Jetson only)
• TensorRT Version 7.1.1
• NVIDIA GPU Driver Version (valid for GPU only) 460
• Issue Type( questions, new requirements, bugs) Question
• 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)

Hello,
I want to set all the properties of deepstream-config file via code in C++.

I am trying to use g_object_set() on following properties but I am getting following error
GLib-GObject-WARNING **: 15:22:33.780: g_object_set_is_valid_property: object class ‘GstNvInfer’ has no property named ‘model-color-format’

The properties I am trying to set are
[property]
model-color-format=0
labelfile-path=labels.txt
network-mode=0
num-detected-classes=80
gie-unique-id=1
is-classifier=0
maintain-aspect-ratio=1
output-blob-names=output;
parse-bbox-func-name=
custom-lib-path=
cluster-mode=2
net-scale-factor = 0.0001

[class-attrs-all]
pre-cluster-threshold=0.25

I am referring to sample code deepstream-app-test3 for example.
How can I achieve that?

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

Coould you try to run “gst-inspect-1.0 nvinfer”