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, Capture and display video from either IP CAM, USB webcam, or the Tegra X2/X1 onboard camera. · GitHub

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