Hello,
I was running this code
to open the csi camera on my jetson nano 4Gb model. Until today, it was running perfectly, however I guess after a few updates or installations that I did to accomplish a different objective (i.e. installing Deepstream on the jetson nano), suddenly this code is not working anymore and it gives me this error. I am unable to figure out what went wrong with the file.
Can you please help?
P.S. gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12' ! nvvidconv flip-method=0 ! 'video/x-raw,width=1920, height=1080' ! nvvidconv ! nvegltransform ! nveglglessink -e
I tried running this code on the terminal and it works, but I want to run the python file above for my code to work.
Please help!
hello rusaliapple2801,
so it seems the basic camera function works.
you may review the python code to check which paragraph cause the failure.
Hello,
Thank you for helping me out.
So after a lot of checks and trails, I am able to run it, but there is a some confusion I am facing regarding the commands, so can you please help me understand this :
The python code works when I type python3 camtry.py
. It runs although there are a few errors/warnings that I cant understand why are being displayed. Can you help me understand what this error and failed to load module means?
However, when I type python3.9 camtry.py
, it shows the same error message like in my first image in the previous comment.
Now, I want to integrate this csi-camera with my yolov5 python model, which runs specifically on python3.9
So it is really necessary for me to make this code run on python3.9.
Can you please help me out?
Additionally - When I run this code on the terminal gst-launch-1.0 nvarguscamerasrc sensor-id=0 ! 'video/x-raw(memory:NVMM),width=1920, height=1080, framerate=30/1, format=NV12' ! nvvidconv flip-method=0 ! 'video/x-raw,width=1920, height=1080' ! nvvidconv ! nvegltransform ! nveglglessink -e
, it does run and show the camera output, but later when I press Ctrl-Z
to shut down the program, my entire jetson nano hangs and then I have to reboot the whole system again. Can you also please help me understand why this might be happening?
Thank you