Hey Guys, I am struggling now for quite some time (2 days to be precise) to get the Camera working in a Python Script.
I need to use OpenCV to detect some Aruco markers so I just set up my Nano yestarday with with the newest Image and used the following script from github to setup OpenCV 4.5 (ended up with Version 4.7) https://github.com/AastaNV/JEP/blob/master/script/install_opencv4.5.0_Jetson.sh . Camera is connected and can be found via
When I’m running the following GStreamer command:
gst-launch-1.0 nvarguscamerasrc sensor_id=0 ! \ 'video/x-raw(memory:NVMM),width=3280, height=2464, framerate=21/1, format=NV12' ! \ nvvidconv flip-method=2 ! 'video/x-raw, width=816, height=616' ! \ nvvidconv ! nvegltransform ! nveglglessink -e
a new window with the capture of the camera is opening and running - just fine.
Now I tried the JacksonHacks CSI-Camera files from their github, but run in some troubles:
When I tried to open those python files via terminal or via Visual Code Studio I always end up with:
Unable to open Camera
I did some research this morning and found some old forum posts from here, where someone suggested to check if GStreamer is activated in OpenCV, so run:
and voila, GStreamer is marked as no. So this should be the problem or am I missing something?
Is there an way to solve this? I’m really new to using Linux and the whole Jetson Nano environment so any help would be nice.