This error doesn’t seem to be PyTorch-specific as it points to OpenCV, so you might want to ask in a Jetson/OpenCV developer board or e.g. StackOverflow to get faster support. 
That being said, based on the error message I assume OpenCV cannot find or access the camera, so you might want to check, if the camera is successfully installed and detected as well as the permissions to access it.