Hi, I am using Raspberry Pi NoIR Camera V2 and I am following the NVIDIA Course. I was able to get the ‘hello_camera’ working but was not able to get the camera to work during the Image Classification Course. The error is below:
RuntimeError Traceback (most recent call last)
/usr/local/lib/python3.6/dist-packages/jetcam-0.0.0-py3.6.egg/jetcam/usb_camera.py in init(self, *args, **kwargs)
23 if not re:
—> 24 raise RuntimeError(‘Could not read image from camera.’)
25
RuntimeError: Could not read image from camera.
During handling of the above exception, another exception occurred:
RuntimeError Traceback (most recent call last)
in
4 # USB Camera (Logitech C270 webcam)
5 from jetcam.usb_camera import USBCamera
----> 6 camera = USBCamera(width=224, height=224, capture_device=0) # confirm the capture_device number
7
8 # CSI Camera (Raspberry Pi Camera Module V2)
/usr/local/lib/python3.6/dist-packages/jetcam-0.0.0-py3.6.egg/jetcam/usb_camera.py in init(self, *args, **kwargs)
26 except:
27 raise RuntimeError(
—> 28 ‘Could not initialize camera. Please see error trace.’)
29
30 atexit.register(self.cap.release)
RuntimeError: Could not initialize camera. Please see error trace.