How to set nvdspreprocess config file,when to set mean and dev in image pixel?

Hardware Platform (Jetson / GPU) GPU
• DeepStream Version 6.2
• JetPack Version (valid for Jetson only)
• TensorRT Version TRT 8.5.2.2
• NVIDIA GPU Driver Version (valid for GPU only) 470.82.01
• Issue Type( questions, new requirements, bugs)

this opencv code

    // BGR => RGB
    cvtColor(resizeImg, img, COLOR_BGR2RGB);
    // normlize
    img.convertTo(img, CV_32F);
    img /= Scalar(255.0, 255.0, 255.0);
    // (X - mean) / stddev
    Scalar mean = Scalar(0.446139603853, 0.409515678883, 0.395083993673);
    Scalar stddev = Scalar(0.288205742836, 0.278144598007, 0.283502370119);
    img -= mean;
    img /= stddev;

HOW to set mean and stddev in nvdspreprocess config file ?

Hi @ClancyLian ,

You should have a cfg /opt/nvidia/deepstream/deepstream/sources/gst-plugins/gst-nvdspreprocess/config_preprocess.txt. In that file, there is a section called [user-configs], and you should check nvdspreprocess, and find channel-scale-factors and channel-mean-offsets.

I am checing.

please refer to topic1, topic2.

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

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