arbit3rr/JetsonYolo
Simple process for camera installation, software and hardware setup, and object detection using Yolov5 and openCV on NVIDIA Jetson Nano.
Featured achievements
The project's latest awards
#1 Repository of the month
#1 Repository of the month
#1 Repository of the month
Yolo Object Detection on NVIDIA Jetson Nano
This repository provides a simple and easy process for camera installation, software and hardware setup, and object detection using Yolov5 and openCV on NVIDIA Jetson Nano. This project uses CSI-Camera to create pipeline and capture frames from the CSI camera, and Yolov5 to detect objects, implementing a complete and executable code on Jetson Development Kits. Check out CodePlay jetson nano youtube playlist and Medium article for more info.
Download Model
Select the desired model based on model size, required speed, and accuracy. You can find available models here in the Assets section. Download the model using the command below and move it to the weights folder.
$ cd weights
$ wget https://github.com/ultralytics/yolov5/releases/download/v5.0/yolov5s.pt
Requirements
These steps are essential for software and hardware configuration.
Camera Setup
Install the camera in the MIPI-CSI Camera Connector on the carrier board. The pins on the camera ribbon should face the Jetson Nano module. You can use this camera setup guide for more info.
Camera Driver
By default, NVIDIA JetPack supports several cameras with different sensors, one of the most famous of which is the Raspberry Pi camera v2. But if you use other cameras, you need to install a sensor driver. A 12.3 MP camera with an IMX477-160 sensor is used in this project which requires an additional driver to connect. Check out Arducam IMX477 driver and their installation guide if you have the same camera sensor. Use the following command to check if the camera is recognized correctly.
$ ls /dev/video0
PyTorch & torchvision
Yolov5 network model is implemented in the Pytorch framework. PyTorch is an open source machine learning library based on the Torch library, used for applications such as computer vision and natural language processing. Heres a complete guide to install PyTorch & torchvision for Python on Jetson Development Kits
Inference
Run JetsonYolo.py to detect objects with the camera.
$ python3 JetsonYolo.py

Citation
@inproceedings{omidi2021embedded,
title={An Embedded Deep Learning-based Package for Traffic Law Enforcement},
author={Omidi, Abbas and Heydarian, Amirhossein and Mohammadshahi, Aida and Beirami, Behnam Asghari and Haddadi, Farzan},
booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision},
pages={262--271},
year={2021}
}
Similar Projects
Discover other similar projects and AI models.
Ultralytics YOLOv5 in PyTorch for object detection, instance segmentation, classification, training, and export.
Ultralytics YOLO27, YOLO26, YOLO11, YOLOv8 — object detection, instance segmentation, semantic segmentation, image classification, pose estimation, object tracking
The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
all-MiniLM-L6-v2 This is a sentence-transformers(https://www.SBERT.net) model: It maps sentences & paragraphs to a 384 dimensional dense vector space and can be used for tasks like clustering or semantic search. Usage (Sentence-Transformers) Using t...
deep learning for image processing including classification and object-detection etc.
X-AnyLabeling: A lightweight, efficient, and unified cross-platform desktop application for annotating text, image, video, point cloud and multimodal data, combining versatile built-in tools with state-of-the-art AI models and flexible multi-format export.
YOLOX is a high-performance anchor-free YOLO, exceeding yolov3~v5 with MegEngine, ONNX, TensorRT, ncnn, and OpenVINO supported. Documentation: https://yolox.readthedocs.io/