[Getting Started with AI on Jetson Nano][Setting up your Jetson Nano]
[Headless Device Mode]
Output of ls /dev/video*
/dev/video0 /dev/video1
To launch the Docker container:
./docker_dli_run.sh
Contents of docker_dli_run,sh:
sudo docker run --runtime nvidia -it --rm --network host --volume ~/nvdli-data:/nvdli-nano/data --device /dev/video0 --device /dev/video1 nvcr.io/nvidia/dli/dli-nano-ai:v2.0.0-r32.4.3
Error occurs with running csi_camera.ipynb or usb_camera.ipynb
Command [ls -ltrh /dev/video*] returns
crw-rw---- 1 root video 81, 4 Oct 9 18:44 /dev/video1
crw-rw---- 1 root video 81, 0 Oct 9 18:44 /dev/video0
(Should that last “-” be a “+”? I don’t know how to fix that. Some varian of chmod?)
Next command:
from jetcam.csi_camera import CSICamera
camera = CSICamera(width=224, height=224)
Returns:
“RuntimeError: Could not initialize camera. Please see error trace.”
(Are there some different parameters I need in the call to CSICamera? Can’t find any documentation for that.)
In the usb_camera.ipynb, the corresponding code is:
from jetcam.usb_camera import USBCamera
camera = USBCamera(width=224, height=224, capture_width=640, capture_height=480, capture_device=0)
Which give the same error.
Appreciate any help you can provide. I’m experienced with Python and Jupyter, but new to the Nano, so my feelings won’t be hurt if you tell me I’m misunderstanding something basic.