I’m trying to capture video from my MIPI CSI IMX219 camera (verified working).
I want to open the video feed with opencv for processing, but I am new to OpenCV and the Jetson platform in general, so I don’t really know what I’m doing.
The following code:
pipeline = 'nvarguscamerasrc sensor-id=1' # never mind the filters cam = cv2.VideoCapture(pipeline)
fails with exceptioni
ERROR global /tmp/…/cap.cpp (160) open VIDEOIO(CV_IMAGES): raised OpenCV exception:
/tmp/…/cap_images.cpp:253:error: (-5:Bad argument) CAP_IMAGES Can’t find starting number (in the name of file) nvarguscamerasrc… in function 'icvExtractPattern.
I’ve seen a lot of similar threads but none of the solutions worked for me. I have not yet tried building openCV because I’m not sure about what build parameters I’m supposed to use.
However I have noticed that cv2.getBuildInformation() says GStreamer NO\n.
Why is GStreamer not included in JetPack builds of OpenCV? It would seem natural that the onboard cam ports would be supported out of the box?
Running Xavier NX