How can I turn off the CSI camera's auto exposure and white balance?

Hello
I installed a CSI camera on the TX2. The stream of the camera is received using opencv.
What I want is to turn off the camera’s auto exposure and white balance.
I used the following command, but nothing happened.

VideoCapture cap("nvcamerasrc sensor-id=0 wbmode=0 auto-exposure=0 ! video/x-raw(memory:NVMM), 
width=(int)1280, height=(int)720,format=(string)I420, framerate=(fraction)24/1 ! nvvidconv flip-method=2 
! video/x-raw(memory:NVMM), format=(string)I420 ! nvoverlaysink -e ! appsink");

Do you know the solution?

hello gyucheol0116,

your video capture pipeline is sames as gstreamer,
please refer to [ACCELERATED GSTREAMER USER GUIDE], try to configure exposure time and white balance manually as a constant value.
thanks