Can't open CSI camera

Our CSI camera works when using nvgstcapture-1.0
And it shows up when using v4l2-ctl

vi-output, imx219 7-0010 (

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(
(False, None)

I coppied most of this out of the

1 Like

Hey Hunter, is from a time when we used python to perform Apriltag detection. We’ve now moved to using the Nvidia Apriltag library so we can make use of the GPU on the Jetson.

We use the Libargus API now to get the camera images into our software.

Are you trying to use the camera outside of the Apriltag module or are you seeing the Apriltag module fail?