About usb camera use in jetson nano

Hi, I am trying to use USB camera on jetson nano with OpenCV, but the image cannot be displayed on jupyterLab, everytime when I run cv2.imshow(‘camera’, ret), the kernel for program appears to have died. Here is the code.
Thank you for your reply!

by the way the camera is ELP-USBFHD08S-LC1100 2.0Megaapixel usb camera

Please check if you can run python sample like this:
V4l2src using OpenCV Gstreamer is not working in Jetson Xavier NX - #3 by DaneLLL

You would need to run v4l2-ctl --list-formats-ext to get detail of supported formats, and set width, height, framerate, format according to the source. Please refer to
Jetson Nano FAQ
[Q: I have a USB camera. How can I launch it on Jetson Nano?]

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