Skip to content

quantumxt/cv4-jet-nano

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vision with Jetson Development Boards

This serves as a documentation & reference for the various resources available for the Jetson Orin Nano, Jetson Xavier NX & Jetson Nano development board with regards to Vision and AI based projects.

The documentation/resources related to the older Jetson Nano (B01) / Jetson Xavier NX development boards would be shifted to the archive directory & the README here.

Organisation

The directory is organised as follows:

  • AI_ML: AI & Machine Learning related project(s)
  • cpp_proj: C++ related projects
  • scripts: Installation & setup scripts. Scripts for the older Jetson Nano and Jetson Xavier NX would be shifted to archive directory inside.

Nvidia lib location

  • libargus/Argus (For image processing): /usr/src/jetson_multimedia_api/argus/
  • Multimedia API: /usr/src/jetson_multimedia_api/

Prerequisite

CUDA paths

Ensure that the CUDA compiler (nvcc) is added to ~/.bashrc, which could be done so via the add_cuda_path.sh script.

cd ~/cv4-jet-nano/scripts
sudo chmod +x add_cuda_path.sh
./add_cuda_path.sh

Camera

Setup (CSI Camera)

Configure the camera via the jetson-io.py script for the Jetson Orin Nano.

sudo /opt/nvidia/jetson-io/jetson-io.py

The terminal show display the menu. Select Configure Jetson 24pin CSI Connector.

  =================== Jetson Expansion Header Tool ===================
 |                                                                    |
 |                                                                    |
 |                    Select one of the following:                    |
 |                                                                    |
 |                   Configure Jetson 40pin Header                    |
 |                Configure Jetson 24pin CSI Connector                |
 |                  Configure Jetson M.2 Key E Slot                   |
 |                                Exit                                |
 |                                                                    |
 |====================================================================|

Select Configure for compatible hardware.

  =================== Jetson Expansion Header Tool ===================
 |                                                                    |
 |                                                                    |
 |                      3.3V (  1) .. (  2) i2c3                      |
 |                      i2c3 (  3) .. (  4) GND                       |
 |                       GND (  7) .. (  8) NA                        |
 |                        NA (  9) .. ( 10) GND                       |
 |                       GND ( 13) .. ( 14) NA                        |
 |                        NA ( 15) .. ( 16) GND                       |
 |                       GND ( 19) .. ( 20) NA                        |
 |                        NA ( 21) .. ( 22) GND                       |
 |                       GND ( 23) .. ( 24) GND                       |
 |                                                                    |
 |                                                                    |
 |                    Jetson 24pin CSI Connector:                     |
 |                                                                    |
 |                 Configure for compatible hardware                  |
 |                                Back                                |
 |====================================================================|

After that, select the camera model that you would be using.

For example, if you are using a single IMX219 camera, select the IMX219-A option, which configures CAM0 for IMX219-A camera.

  =================== Jetson Expansion Header Tool ===================
 |                                                                    |
 |                                                                    |
 |                Select one of the following options:                |
 |                                                                    |
 |                         Camera IMX219 Dual                         |
 |                          Camera IMX219-A                           |
 |                    Camera IMX219-A and IMX477-C                    |
 |                          Camera IMX219-C                           |
 |                         Camera IMX477 Dual                         |
 |                     Camera IMX477 Dual 4 lane                      |
 |                          Camera IMX477-A                           |
 |                    Camera IMX477-A and IMX219-C                    |
 |                          Camera IMX477-C                           |
 |                                                                    |
 |                                Back                                |
 |                                                                    |
 |                                                                    |
 |====================================================================|

Select Save pin changes.

  =================== Jetson Expansion Header Tool ===================
 |                                                                    |
 |                                                                    |
 |                      3.3V (  1) .. (  2) i2c3                      |
 |                      i2c3 (  3) .. (  4) GND                       |
 |                       GND (  7) .. (  8) NA                        |
 |                        NA (  9) .. ( 10) GND                       |
 |                       GND ( 13) .. ( 14) NA                        |
 |                        NA ( 15) .. ( 16) GND                       |
 |                       GND ( 19) .. ( 20) NA                        |
 |                        NA ( 21) .. ( 22) GND                       |
 |                       GND ( 23) .. ( 24) GND                       |
 |                                                                    |
 |                                                                    |
 |                    Jetson 24pin CSI Connector:                     |
 |                                                                    |
 |                          Save pin changes                          |
 |                        Discard pin changes                         |
 |====================================================================|

Reboot the Jetson to use the camera!

References

First image

Use the nvgstcapture-1.0 command to check whether the camera is working.

nvgstcapture-1.0
nvgstcapture-1.0 --orientation 2	# Rotate image output by 180 degrees

References

Tools

Firefox

Install Firefox browser via flatpak, as there may be issues installing via snap.

cd ~/cv4-jet-nano/scripts
sudo chmod +x install_firefox_flatpak.sh
./install_firefox_flatpak.sh

References

Docker

Access docker without running sudo, by adding user to the docker group.

cd ~/cv4-jet-nano/scripts
sudo chmod +x add_docker_group.sh
./add_docker_group.sh

Archive (Jetson Nano B01 / Jetson Xavier NX)

For documentation/testing of the Jetson Nano B01 / Jetson Xavier NX, checkout the README here.

License

Licensed under the MIT License.

About

Exploring Vision & AI with on the Jetson Nano B01, Jetson Xavier NX and Jetson Orin Nano (WIP)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published