Hi, AastaLLL
I found the reason that:
The CSI camera need ISP,gst(with NVT pluge) only open it.
So I use follow code:
const char* gst = "nvcamerasrc ! video/x-raw(memory:NVMM), width=(int)640, height=(int)360, format=(string)I420, framerate=(fraction)30/1 ! \
nvvidconv flip-method=2 ! video/x-raw, format=(string)I420 ! \
videoconvert ! video/x-raw, format=(string)BGR ! \
appsink";
cv::VideoCapture cap(gst);
It’s ok,thank u.