examples/README.md
<a href="https://www.ultralytics.com/" target="_blank"></a>
[!WARNING] The examples in this directory are community-contributed and showcase creative ways to use Ultralytics YOLO models. While we truly appreciate these contributions, they may not always reflect the latest best practices or receive regular updates. To help streamline our codebase and focus our resources on maintaining comprehensive, up-to-date official documentation and guides, we plan to retire these examples in a future Ultralytics release.
Welcome to the Ultralytics examples directory! This collection showcases practical applications and detailed walkthroughs for integrating Ultralytics YOLO models into various real-world projects. Explore Python scripts and Jupyter notebooks designed to help you leverage the power of models like Ultralytics YOLO26 for tasks like object detection, instance segmentation, semantic segmentation, pose estimation, and more.
Whether you're deploying models on edge devices using formats like ONNX with ONNX Runtime, optimizing with TensorRT on NVIDIA Jetson, using OpenVINO for Intel hardware, or integrating with frameworks like OpenCV, these examples provide valuable insights and code snippets. Find inspiration for your next computer vision project and see how others are using Ultralytics YOLO to build innovative AI solutions on platforms ranging from C++ and C# to Python and Rust.
Browse through the community-contributed examples below. These projects demonstrate various use cases and deployment strategies for Ultralytics YOLO models across different platforms and programming languages. All C++ examples are grouped together under ./cpp with a combined build-and-test guide.
All C++ examples live under ./cpp and support every YOLO task and generation. See the C++ examples guide for a combined build-and-test walkthrough.
| Title | Backend | Contributor |
|---|---|---|
| YOLO OpenCV DNN CPP | OpenCV DNN | Justas Bartnykas |
| YOLO ONNX Runtime CPP | ONNX Runtime | DennisJcy, Onuralp Sezer |
| YOLO LibTorch CPP | LibTorch | Myyura |
| YOLO OpenVINO CPP | OpenVINO | Erlangga Yudi Pradana |
| YOLO MNN CPP | MNN | Khoi VN |
| YOLO Triton CPP | Triton | Ahmet Selim Demirel, Doğan Mehmet Başoğlu, Enes Uzun, Mevlüt Ardıç |
| Title | Backend | Contributor |
|---|---|---|
| YOLO OpenCV ONNX Detection | OpenCV / ONNX | Farid Inawan |
| YOLOv8 ONNX Runtime | ONNX Runtime | Semih Demirel |
| RTDETR ONNX Runtime | ONNX Runtime | Semih Demirel |
| YOLOv8 Segmentation ONNX Runtime | ONNX Runtime | jamjamjon |
| YOLOv8 INT8 TFLite | TFLite | Wamiq Raza (See also TFLite Export) |
| YOLOv8 SAHI Video Inference | SAHI | Muhammad Rizwan Munawar (See also SAHI Guide) |
| YOLOv8 Region Counter | Region Counting | Muhammad Rizwan Munawar (See also Region Counting Guide) |
| YOLOv8 on NVIDIA Jetson (TensorRT and DeepStream) | TensorRT / DeepStream | Lakshantha (See also DeepStream Guide) |
| Title | Backend | Contributor |
|---|---|---|
| YOLOv8 All Tasks ONNX Runtime Rust | ONNX Runtime | jamjamjon |
| YOLOv5-YOLO11 ONNX Runtime Rust | ONNX Runtime | jamjamjon |
| Title | Backend | Contributor |
|---|---|---|
| YOLO C# ONNX Runtime (YoloSharp) | ONNX Runtime | Compunet |
| YOLO .NET ONNX Detection (Yolov8.Net) | ONNX | Samuel Stainback |
| RTDETR ONNX Runtime C# | ONNX Runtime | Kayzwer |
We actively encourage contributions from our vibrant community! Sharing your examples, applications, and guides helps others learn and build amazing things with Ultralytics. If you have a project you'd like to share, please follow these steps:
examples/ directory of your forked repository.ultralytics pip package.README.md file with clear, step-by-step instructions for setup and execution. Explain the purpose of the example and any prerequisites.ultralytics.utils.downloads.safe_download()).main branch of the official Ultralytics repository. Use the title prefix [Example] (e.g., [Example] Add YOLOv8 Pose Estimation on Raspberry Pi).For more comprehensive guidelines on contributing code, documentation, or examples, please refer to our Contributing Guide. We appreciate your efforts to enhance the Ultralytics ecosystem! If you have questions, feel free to open an issue or PR, and the team will be happy to assist. Check out the Ultralytics Blog for more insights and updates, and explore Ultralytics Platform for streamlined model training and deployment.