When I run python3 xx.py in the Jetson Xavier NX terminal window, the following error occurs
Error generated. /dvs/git/dirty/git-master_linux/multimedia/nvgstreamer/gst-nvarguscamera/gstnvarguscamerasrc.cpp, execute:740 No cameras available
[ WARN:0] global /home/txgt/opencv/opencv-4.5.2/modules/videoio/src/cap_gstreamer.cpp (1081) open OpenCV | GStreamer warning: Cannot query video position: status=0, value=-1, duration=-1
Hi,
The error indicates there’s no Bayer camera is connected. We support RPi camera v2 on Xavier NX developer kit. You may get the camera, connect to developer kit and try again.
The same error occurs even when I switch to and run it with a Raspberry Pi Camera v2. However, when I run IDLE, load the file, and press F5, it works. What could be the problem?