I’m a newcomer in AI trying to enter this field of IT with Jetson nano development kit. I am in the course
Getting Started with AI on Jetson Nano (https://courses.nvidia.com/courses/course-v1:DLI+C-RX-02+V1/course/).
After I have run the Jetson Nano Developer Kit in a headless configuration, I connect the kit with a usb camera (https://www.cnet.com/products/logitech-quickcam-pro-4000-web-camera-series/) and run the “hello_camera” lab.
After running !ls -ltrh /dev/video*, it output
crw-rw----+ 1 root video 81, 0 Jun 14 22:08 /dev/video0 ,which is correct.
But when I want to create camera object by
from jetcam.usb_camera import USBCamera
camera = USBCamera(width=224, height=224, capture_width=640, capture_height=480, capture_device=0)
It returns
[b]---------------------------------------------------------------------------
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
2 #define DEFAULT_CAMERA 0
3 #TODO change capture_device if incorrect for your system
----> 4 camera = USBCamera(width=224, height=224, capture_width=640, capture_height=480, capture_device=0)
/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.
---------------------------------------------------------------------------[/b]
I have tried to find solution on the forum but null. Is this occurs because of the camera I am using?