Welcome to Jetson Orin NANO Developer Kit repository
04.Use JetCam
Using JetCam
Using JetCam1. JetCam Installation2. Using JetCam2.1. CSI CameraMain Code ExplanationCalling the CameraGetting the Camera Image2.1.1. Single-Channel Camera2.1.2. Multi-Channel Camera2.2. USB CameraReferences
pip Installation Note: Ubuntu 24.04 marks the system Python as "externally managed" according to PEP 668, so installing directly with pip may report
externally-managed-environment.--break-system-packagesallows pip to install packages in that environment; a virtual environment usually does not need this parameter, but this tutorial keeps it to keep the commands consistent.
The factory system already has the relevant environment set up, so the installation steps can be skipped.
JetCam is an easy-to-use Python library developed by NVIDIA for the Jetson platform, used to integrate and operate USB cameras or CSI cameras
1. JetCam Installation
git clone https://github.com/NVIDIA-AI-IOT/jetcam
xxxxxxxxxxcd jetcam
xxxxxxxxxxsudo python3 setup.py install
xxxxxxxxxxsudo pip3 install ipywidgets --break-system-packages

2. Using JetCam
JetCam provides typical sample programs to demonstrate the calling of CSI and USB cameras to users.
xxxxxxxxxxThe case needs to be run with Jupyter Lab. With the factory image system, you can access it directly through the mainboard IP:8888!
2.1. CSI Camera
In the Jupyter Lab web page, go to the folder where the CSI camera is located and open the corresponding folder:
xxxxxxxxxx/home/jetson/jetcam/notebooks/csi_camera
Note: If you are not very familiar with Jupyter Lab, you can read the Using Jupyter Lab tutorial to learn the basic operations!
Main Code Explanation
Calling the Camera
width: image output width
height: image output height
xxxxxxxxxxfrom jetcam.csi_camera import CSICameracamera = CSICamera(width=224, height=224)
Getting the Camera Image
xxxxxxxxxximage = camera.read()
2.1.1. Single-Channel Camera
Source Code Path
xxxxxxxxxx/home/jetson/jetcam/notebooks/csi_camera/csi_camera.ipynb
Running Phenomenon
After the program file is opened, run the cells one by one from top to bottom:

2.1.2. Multi-Channel Camera
Source Code Path
xxxxxxxxxx/home/jetson/jetcam/notebooks/csi_camera/multi_csi_camera.ipynb
Running Phenomenon
After the program file is opened, run the cells one by one from top to bottom:

2.2. USB Camera
In Jupyter Lab, go to the folder where the USB camera is located and open the file. The folder path in the factory image system is:
xxxxxxxxxx/home/jetson/jetcam/notebooks/usb_camera
