Getting image from CSI and sending it to OpenCV does not give correct image

Hi,
You may also refer to this:

To create NvBuffer in RGBA and map to CV_8UC4.