Hi,
I am getting raw12 CSI data from custom sensor.
The resolution is 2038x384 @25fps
When running
gst-launch-1.0 nvarguscamerasrc ! 'video/x-raw(memory:NVMM), width=2048, height=384, format=NV12, framerate=25/1' ! nvoverlaysink
I can see the frames on the display.
But when I am running the following:
import cv2
gst_str = ('nvarguscamerasrc ! video/x-raw(memory:NVMM), width=2048, height=384, format=(string)NV12, framerate=25/1 ! nvvidconv ! video/x-raw, format=NV12 ! appsink')
cap = cv2.VideoCapture(gst_str, cv2.CAP_GSTREAMER)
cap.isOpened()
Capture did not opened.
I have also tried the following:
import cv2
gst_str = ('nvarguscamerasrc ! video/x-raw(memory:NVMM), width=2048, height=384, format=(string)NV12, framerate=25/1 ! nvvidconv ! video/x-raw, width=2048, height=384,format=NV12, framerate=25/1 ! appsink')
cap = cv2.VideoCapture(gst_str, cv2.CAP_GSTREAMER)
But this did not succeeded either.
How can I get the raw12 frames, without any conversion, to openCV ?
Thanks,
Ron