My gstreamer pipeline:
And then I use this conversion in OpenCV
Code: Select all
V4l2src device=/dev/video1 ! video/x-raw, format=NV12, width=1080, height=720, framerate=30/1 ! appsink
And then I use this conversion in OpenCV
Code: Select all
cv2.cvtColor(frame, cv2.COLOR_YUV2BGR_NV12)