USB camera is turned on or working but no screen shown when running the Jetcam in a container

I first create a container with:
sudo docker run -it -v /home/jetson/:/jetson -d --name test_camera --gpus all -e DISPLAY=$DISPLAY -v /tmp/.X11-unix/:/tmp/.X11-unix --runtime nvidia --device /dev/video0:/dev/video0:mwr --network host /bin/bash

I follow the guideline here:

My code is simple, just: (

from jetcam.usb_camera import USBCamera
camera = USBCamera(capture_device=0) # I checked the device its /dev/video0
camera.running = True

I save the above code in python script, then execute it via the below code:

The usb camera lights turned on and I think it is running, however, there isnt any pop up window showing the screen. It just keep running without anything happen. Can anyone please help me with this issue? I have been working on it for many hours and search for solution but to no avail.

You may refer to steps in Jetson Nano FAQ

Q: I have a USB camera. How can I launch it on Jetson Nano?

To make sure the USB camera can be launched successfully.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.