I know this type of question (or similar) has already been asked several times on this forum and please apologize if I ask it ones more, but I read/worked many hours on this problem and could still make zero progress:
I am working with a Jetson AGX Xavier device (Jetpack 4.6) and have just prepared the L4T-ML docker container (NVIDIA L4T ML | NVIDIA NGC) for working with GPU(Cuda) accelerated OpenCV for Computer Vision applications. The OpenCV works well in the container it can communicate with Cuda and I can run several basic image/video processing test in “OpenCV-GPU mode”, but there is a big problem:
OpenCV can’t sense my webcam from the L4T-ML container
If I use OpenCV installed by simple pip install from the SSD/SD card it can perfectly use the webcam but it can only run in cpu mode in this case. I use this code to test my webcam in CPU mode and it works fine:
I am not even sure that this code is the right test for GPU mode OpenCV from the L4T-ML container but I tried this.
I have tried many modifications that I read in other topics about similar camera poblems, but with zero success, I know the problem can be in many points.
Can you tell me how I could use my webcam from the L4T-ML container?
This OpenCV Code opens the camera when I am outside the container ( from jupyter notebook which is installed directly on the SD Card of the Jetson). This OpenCV Code doesn’t open the camera when I use it inside the L4T-ML container.
I will check the tutorial and the code that you pasted a.s.a.p. !