Practical overview
When it fits
Use it when an application needs YOLOv5 image inference in C#/.NET and its developers can integrate the library, select an ONNX Runtime option and provide a suitable ONNX model.
Who it is for
- Developers adding YOLOv5 image detection to C#/.NET applications.
- Teams building image-review workflows that display detected objects.
- Developers adapting a wrapper for a custom-trained YOLOv5 model.
Documented uses
- Run a predefined COCO model on an image and retrieve object predictions.
- Use prediction labels, scores and rectangles to draw detections on an image.
- Create a YoloModel wrapper for a custom-trained model.
Requirements & limits
The repository is public and specifies the MIT license.
- The library includes YoloCocoP5Model and YoloCocoP6Model wrappers.
- CPU and GPU inference use separate ONNX Runtime packages, which the README says cannot be installed together.
- Custom models require a YoloModel implementation with required properties and methods overridden.
- The README's example uses an ONNX weights file and image-processing code to draw and save annotated output.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Add Yolov5Net and choose an ONNX Runtime package
Set up the library with either the documented CPU or GPU runtime option.
Before you start
- A .NET project using Package Manager Console.
Steps
Install Yolov5Net version 1.1.0 with the documented Package Manager Console command.
Choose either Microsoft.ML.OnnxRuntime version 1.14.1 for CPU use or Microsoft.ML.OnnxRuntime.Gpu version 1.14.1 for GPU use.
Expected outcome
The library and one documented ONNX Runtime package are added to the project.
Guide limitations
- The CPU and GPU runtime packages cannot be installed together.
- These setup steps do not configure a model or demonstrate inference.
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 16 November 2026
- Original website title
- techwingslab/yolov5-net · Official homepage title · retained in its source language

