Jetson AI Fundamentals - Error Creating Camera Object

Just got a Jetson Orin Nano, and trying the Jetson AI Fundamentals course. I’m stuck on the Hello Camera example when executing the step (seen here → Jetson AI Fundamentals - S1E2 - Hello Camera - YouTube):
from jetcam.usb_camera import USBCamera

#TODO change capture_device if incorrect for your system
camera = USBCamera(width=224, height=224, capture_width=640, capture_height=480, capture_device=0)

I get the error :

ImportError Traceback (most recent call last)
in
----> 1 from jetcam.usb_camera import USBCamera
2
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
1 from .camera import Camera
2 import atexit
----> 3 import cv2
4 import numpy as np
5 import threading

ImportError: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29’ not found (required by /usr/lib/aarch64-linux-gnu/libgstreamer-1.0.so.0)

Anyone know how to get past this error?

Hi,
Please refer to the steps in Jetson AGX Orin FAQ to make sure the USB camera can be successfully launched on Orin Nano first:

Q: I have a USB camera. How can I launch it on AGX Orin?

@ketterrm presumably you are trying to run that dlinano container on JetPack 5 and Jetson Orin Nano, however it was intended for JetPack 4 and the original Jetson Nano. Unofficially you could copy the notebooks from the container (or from a fork like here) and run them in another container built for JetPack 5 that has similar components like JupyterLab (i.e. l4t-ml)

In reality though, since that DLI course is for the original Nano, I’d just recommend proceeding to the Hello AI World portion of the AI Fundamentals course instead (which is supported on JetPack 5 / Orin / ect)

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