yahboom
HomeTutorialsProduct
Solution
Blog
Online Store
About Us
EN/中文
Store
IMX 415 Camera Module📖
0. Precautions for Focus Adjustment (Must Read)new
  • Precautions for Focus Adjustment (Must Read)
1. Jetson Orin Nano‑NX Usage Course
JP6.2.1
  • 1. Camera Driver Course
  • 2.1 Advanced AI Vision-Traffic Detection—DeepStream environment
  • 2.2 Advanced AI Vision-Traffic Detection—Four types of detection(traffic)
  • 3. YOLO11 Object Detection
  • 4. YOLO26 Object Detection
  • 5. Mediapipe Environment
  • 6. Mediapipe Hand Detection
  • 7. MediaPipe Face Detection
  • 8. MediaPipe Face Effects
  • 9. MediaPipe 3D Object Recognition
  • 10. MediaPipe Virtual Brush
  • 11. MediaPipe Gesture Recognition
  • 12. MediaPipe Finger Control
  • 13. MediaPipe Posture Estimation
  • 14. MediaPipe Face Mask
  • 15. MediaPipe Overall Detection
  • 16. MediaPipe Green Scene Rremoval(Human)
  • 17. QR code recognition
JP7.2.1
  • 1. Camera Driver Course
  • 2.1.DeepStream environment
  • 2.2.Four types of detection(traffic)
  • 3. YOLO11 Object Detection
  • 4. YOLO26 Object Detection
  • 5. Mediapipe Environment
  • 6. Mediapipe Hand Detection
  • 7. MediaPipe Face Detection
  • 8. MediaPipe Face Effects
  • 9. MediaPipe 3D Object Recognition
  • 10. MediaPipe Virtual Brush
  • 11. MediaPipe Gesture Recognition
  • 12. MediaPipe Finger Control
  • 13. MediaPipe Posture Estimation
  • 14. MediaPipe Face Mask
  • 15. MediaPipe Overall Detection
  • 16. MediaPipe Green Scene Rremoval(Human)
  • 17. QR code recognition
2. Raspberry Pi 5 Usage Course
  • 1. Camera Driver Course
  • 2. Advanced AI Vision-Human Pose Estimation
  • 3. Target Detection
  • 4. QR Code
  • 5. Face Detection
  • 6. Color Recognition
  • 7. YOLO11 Object Detection
  • 8. YOLO26 Object Detection
  • 9. MediaPipe Face Effects
  • 10. MediaPipe Face Detection
  • 11. MediaPipe 3D Object Recognition
  • 12. MediaPipe Virtual Brush
  • 13. MediaPipe Finger Control
  • 14. MediaPipe Gesture Recognition
3. RDK X5 Usage Course
  • 1. Camera Driver Course
  • 2. Target Detection Algorithm-FCOS
  • 3. Target Detection Algorithm-YOLOv5s
  • 4. YOLO26 Object Detection
4. Camera Bracket Installation (Optional Video)
  • Installation Video
5.Connect to official Jetson ORIN NANO
  • Connect to official Jetson ORIN NANO
Download
  • Code
  • SystemFile
  • 3D_Model_File
  • Hardware_Info
Download ZIP

Welcome to IMX 415 Camera Module repository

2.1.DeepStream environment

DeepStream Environment Setup

  • DeepStream Environment Setup
    • 1. Pre-installation Check
    • 2. Download the DeepStream 9.1 Package
    • 3. Install the TensorRT 10.x Dependencies
    • 4. Install DeepStream 9.1
    • 5. Verify the Installation
    • 5. Run the Basic Video Detection Case
    • 6. USB and CSI Camera Detection
      • 6.1 USB Camera
      • 6.2 CSI Camera
    • 7. Clean Up the Installation Package
    • 8. FAQ
      • Problem 1: aria2c not found
      • Problem 2: Dependency error
      • Problem 3: TensorRT version conflict

This tutorial applies to the Jetson Orin NX with JetPack 7.2.1 / Ubuntu 24.04 / L4T R39.2 / CUDA 13.2. The relevant environment is already set up on the factory system, so this tutorial can be skipped.

1. Pre-installation Check

First confirm that the system is on the JetPack 7.2.1 baseline, and check the TensorRT dependencies. DeepStream 9.1 requires CUDA 13.2 and TensorRT 10.16; if 10.16.2 is not present, you need to install TensorRT version 10.16.2.

cat /etc/os-release
dpkg-query -W -f='${Package} ${Version}\n' \
  nvidia-l4t-core libnvinfer10 libnvonnxparsers10 libnvinfer-plugin10
df -h /

The target machine version actually verified in this course:

Ubuntu 24.04.4 LTS
L4T R39.2.1
CUDA 13.2
TensorRT 10.16.2

Reserve at least 5 GB of root partition space before installation; more space is needed later when downloading advanced models and building TensorRT engines.

2. Download the DeepStream 9.1 Package

The DeepStream 9.1 Jetson arm64 package is published on the NVIDIA official GitHub Release. Downloading with multiple connections via aria2c is recommended.

cd /tmp
aria2c -x 16 -s 16 -k 1M \
  https://github.com/NVIDIA/DeepStream/releases/download/v9.1.0/deepstream-9.1_9.1.0-1_arm64.deb

If aria2c is not available:

wget https://github.com/NVIDIA/DeepStream/releases/download/v9.1.0/deepstream-9.1_9.1.0-1_arm64.deb

Verify the download:

ls -lh /tmp/deepstream-9.1_9.1.0-1_arm64.deb

3. Install the TensorRT 10.x Dependencies

DeepStream 9.1 requires TensorRT 10.x, while JetPack 7.2.1 defaults to 11.x

sudo apt update
sudo apt install -y \
  libnvinfer10=10.16.2.10-1+cuda13.2 \
  libnvonnxparsers10=10.16.2.10-1+cuda13.2 \
  libnvinfer-plugin10=10.16.2.10-1+cuda13.2  

Verify the installation:

dpkg -l | grep libnvinfer10
# Expected output: ii  libnvinfer10  10.16.2.10-1+cuda13.2

4. Install DeepStream 9.1

sudo dpkg -i /tmp/deepstream-9.1_9.1.0-1_arm64.deb
sudo apt install -f -y

Verify the installation:

dpkg -l | grep deepstream
# Expected output: ii  deepstream-9.1  9.1.0-1  arm64

Configure DeepStream:

sudo dpkg --configure deepstream-9.1

5. Verify the Installation

Check the DeepStream, CUDA, and TensorRT versions:

deepstream-app --version-all

Expected to include:

deepstream-app version 9.1.0
DeepStreamSDK 9.1.0
CUDA Driver Version: 13.2
CUDA Runtime Version: 13.2
TensorRT Version: 10.16
cuDNN Version: 9.27
libNVWarp360 Version: 2.0.1d3

image-20261014103830617

In general, if cuDNN is shown as unavailable this is a display bug and it actually works. If you want the cuDNN version to be displayed as in the figure, you need to

sudo apt install libcudnn9-dev-cuda-13 

Check the package status and the core GStreamer plugins:

dpkg-query -W -f='${Status} ${Version}\n' deepstream-9.1

gst-inspect-1.0 nvinfer >/dev/null && echo "nvinfer OK"
gst-inspect-1.0 nvstreammux >/dev/null && echo "nvstreammux OK"
gst-inspect-1.0 nvv4l2decoder >/dev/null && echo "hardware decoder plugin OK"

5. Run the Basic Video Detection Case

This case uses the traffic video and TrafficCamNet included with DeepStream; the terminal continuously outputs the number of vehicles and people in each frame.

cd /opt/nvidia/deepstream/deepstream-9.1/sources/apps/sample_apps/deepstream-test1
sudo deepstream-test1-app dstest1_config.yml

The full path of the test video is:

/opt/nvidia/deepstream/deepstream-9.1/samples/streams/sample_720p.h264

Success indicators:

Frame Number = 0 Number of objects = ... Vehicle Count = ... Person Count = ...
...
End of stream
Returned, stopping playback
Deleting pipeline

The following information appearing on the first run is normal:

Deserialize engine failed
Trying to create engine from model files

This means that there is no corresponding TensorRT engine on the device yet, and DeepStream is building an engine from the ONNX model. The first build will be slower.

If failed to serialize cuda engine to file appears, it is usually because the ordinary user does not have write permission for /opt/nvidia/deepstream/.../samples/models; the current inference can still proceed normally, but the engine may be rebuilt on subsequent startups.

6. USB and CSI Camera Detection

Run in a graphical desktop, VNC, or RDP session. Pure SSH has no display environment and cannot verify the nv3d-sink graphical output.

6.1 USB Camera

You can first confirm the camera node:

ls -l /dev/video*

Orin NX: enter the following commands to preview

cd ~/deepstream_tao_demo
./run_camera_preview.sh usb
./run_case.sh peoplenet usb

Orin NANO: enter the following commands to preview

cd /opt/nvidia/deepstream/deepstream-9.1/samples/configs/deepstream-app
sudo deepstream-app -c source1_usb_dec_infer_resnet.txt

The preview script selects the resolution and frame rate according to the formats actually supported by the camera. If not-negotiated appears, do not manually modify multiple templates again; using this entry point avoids inconsistency in nodes, resolution, or frame rate.

6.2 CSI Camera

Orin NX: enter the following commands to preview

cd ~/deepstream_tao_demo
./run_camera_preview.sh csi
./run_case.sh peoplenet csi

Orin NANO: enter the following commands to preview

cd /opt/nvidia/deepstream/deepstream-9.1/samples/configs/deepstream-app
sudo deepstream-app -c source1_csi_dec_infer_resnet.txt

When CSI succeeds, the terminal lists the sensor modes supported by Argus and continuously outputs FPS. If Argus can recognize the sensor but the window goes black and then exits, check the CSI camera module, cable, and connector first; in this test, replacing the CSI camera made it run normally.

The CSI preview requests sensor-mode=3, wbmode=1, and exposure compensation 0 by default. If the current nvarguscamerasrc has no sensor-mode property, then the 1920x1080@30 caps are used to select the sensor mode. wbmode=3 is fluorescent white balance, not an exposure mode, and may cause a reddish or magenta tint under normal lighting.

7. Clean Up the Installation Package

After installation and verification are complete, you can delete the temporary installation package and download log in /tmp to avoid taking up space:

rm -f /tmp/deepstream-9.1_9.1.0-1_arm64.deb \
  /tmp/deepstream-9.1_9.1.0-1_arm64.deb.aria2 \
  /tmp/deepstream-9.1-download.log

Do not run sudo apt autoremove unless you have confirmed that the listed auto-installed packages are no longer used by other courses or projects.

8. FAQ

Problem 1: aria2c not found

Solution:

sudo apt install -y aria2

Problem 2: Dependency error

Solution:

sudo apt install -f -y

Problem 3: TensorRT version conflict

Ensure the correct version is installed:

dpkg -l | grep libnvinfer
# Expected output: libnvinfer10, not libnvinfer11

Camera Driver Course
Four types of detection(traffic)

COMPANY

  • About us
  • Team Style
  • Blog

LEARNING & EXPLORATION

  • Tutorials
  • Edge AI hardware
  • Educational robots
  • Embedded intelligent hardware

WHERE TO BUY

  • Yahboom Online Store
  • Amazon
  • Alibaba
  • AliExpress
  • Mercado

TECHNOLOGY SUPPORT

  • Email: support@yahboom.com

BE A DISTRIBUTOR

  • Email: sales@yahboom.com
QR Code

Copyright © 2017-2026 Yahboom. All Rights Reserved.

EN/中文