Deepstream input camera brightness

Hi,
I am using Deepstream SDK 5.0 python and I was wondering if it is possible to change the brightness and contrast of image for deepstream in python code by using OpenCV.
Is it possible to change it before it goes to processing the data?

Many thanks

There are some 3rd party resources for using opencv with gstreamer and deepstream. You may google them and refer to them. For example, https://gist.github.com/jkjung-avt/86b60a7723b97da19f7bfa3cb7d2690e

Thanks,
Is there another solution to change the brightness and contrast of an input image with GStreamer? (Not with opencv)