brianlmerritt / nano_build_opencv

Build OpenCV on Nvidia Jetson Nano

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenCV build script for Tegra

This script builds OpenCV from source on Tegra (Nano, NX, AGX, Orin etc.).

Related thread on Nvidia developer forum here.

How it Works

Usage:

./build_opencv.sh

Specifying an OpenCV version (git branch)

./build_opencv.sh 4.4.0

Where 4.4.0 is any version of openCV from 2.2 to 4.9.0 (any valid OpenCV git branch or tag will also attempt to work, however the very old versions have not been tested to build and may require spript modifications.).

JetPack 4.4 NOTE: the minimum version that will build correctly on JetPack 4.4 GA is 4.4.0. Prior versions of JetPack may need the CUDNN version adjusted (the -D CUDNN_VERSION='8.0' line can simply be removed).

** JetPack 6 NOTE: ** the modifications here have not been tested on older JetPack versions and probably will not work

Todo:

  1. Test on Orin Nano and ensure works with Python 3.10 and CUDA
  2. Fix broken build failure for ROS 2 Humble depthai-ros

About

Build OpenCV on Nvidia Jetson Nano

License:MIT License


Languages

Language:Shell 100.0%