Hi,
Before powering up the Jetson Nano, when I hook up the pi camera, and then after powering the nano and running the OpenCV script, the camera works perfectly fine. But if I unplug the camera while the Jetson is still ON, and if I type ls /dev/video0 , it still shows the device (/dev/video)
But then when I plug in the camera instantly while the Jetson is still in On, and run the same OpenCV script, the image editor does not appear and I get multiple CRITICAL GStreamer messages in the command line as shown in the OpenCV log. And when I terminate and rerun the script again then it throws an error
Any idea why it is happening? It seems when I unplug the camera, it’s still locked by the hardware. But I do use cam.release() at the end of my script to release both software and hardware resource.
Here is cvlog
cvlog.txt (5.7 KB)
Further, I just realized that if I unplug and plug the camera (roughly after 30sec), the script again works!!
Anyway to rlease the CSI handle from the Jetson nano?