Our CSI camera works when using nvgstcapture-1.0
And it shows up when using v4l2-ctl
vi-output, imx219 7-0010 (platform:54080000.vi:0):
/dev/video0
But when I try to open it using opencv:
>>> connection_string = f"v4l2src device=/dev/video0 io-mode=2 ! image/jpeg,width=1280,height=720,framerate=60/1 ! jpegparse ! nvv4l2decoder mjpeg=1 ! nvvidconv ! videorate ! video/x-raw,format=BGRx,framerate=30/1 ! videoconvert ! video/x-raw,width=1280,height=720,format=BGRx ! appsink"
>>> cv = cv2.VideoCapture(connection_string)
>>> print(cv.read())
(False, None)
>>>
I coppied most of this out of the capture_device.py