Use dsexample before nvinfer in test5 app

Please provide the following information when requesting support.
**• Hardware Platform (Jetson / GPU)GPU
**• DeepStream Version 5.1
• JetPack Version (valid for Jetson only)
• TensorRT Version does not matter
• NVIDIA GPU Driver Version (valid for GPU only) does not matter
**• Issue Type( questions, new requirements, bugs)questions
• 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) dsexample

Hi everyone,

I am building on top of deepstream-test5 app with dsanalytics. I would like to add some OpenCV preprocessing on all streams on the whole frame before inference to reduce some artifacts and improve detection. I believe I could use dsexample in full frame mode for that but I do not understand how to ensure that dsexample is run before everything else. I have seen this post: How to insert dsexample as a preprocessor? but it’s not quite clear to me from there what are the right steps to change the order from post inference to before inference and if it should be added as common_elements or not.

Looking forward to hear from you
Kind regards,

Please upgrade to DS6.0. Is it possible to use DS preprocess plugin? It can add customized preprocess.

Gst-nvdspreprocess (Alpha) — DeepStream 6.0 Release documentation (

Hi @kesong thanks for suggesting preprocess plugin, but I would still prefer to use dsexample plugin before the inference. My use case would be to apply two or three filters from OpenCV on whole frames and it seems to me it would be more straightforward than preprocessing which looks way more complex than I need. How can I make sure that a plugin like dsexample before nvinfer?

Can you check function create_pipeline()? You can change the pipeline in it.

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