Skip to main content
net10.0

A lightweight, zero-configuration object detector for .NET. Supports RT-DETR models with automatic download, GPU acceleration, and HuggingFace caching. NMS-free architecture for fast inference.

Published
Feb 26, 2026
7mo ago
Total Downloads
18.1K
18,108

Install

dotnet add package LMSupply.Detector --version 0.13.5
ProductVersions
.NET
net10.0

README

LMSupply.Detector

Local object detection for .NET with automatic model downloading.

Features

  • Zero-config: Models download automatically from HuggingFace
  • GPU Acceleration: CUDA, DirectML (Windows), CoreML (macOS)
  • Apache-2.0 Licensed: RT-DETR models for commercial use
  • 80 COCO Classes: People, vehicles, animals, objects

Quick Start

using LMSupply.Detector;

// Load the default model
await using var detector = await LocalDetector.LoadAsync("default");

// Detect objects
var results = await detector.DetectAsync("photo.jpg");

foreach (var detection in results)
{
    Console.WriteLine($"{detection.Label}: {detection.Confidence:P1}");
    Console.WriteLine($"  Box: [{detection.Box.X1:F0}, {detection.Box.Y1:F0}]");
}

Available Models

Alias Model Size mAP Description
default RT-DETR R18 ~80MB 46.5 Best balance
fast EfficientDet-D0 ~15MB 33.8 Fastest inference
quality RT-DETR R50 ~170MB 53.1 Higher accuracy
large RT-DETR R101 ~300MB 54.3 Highest accuracy

GPU Acceleration

# NVIDIA GPU
dotnet add package Microsoft.ML.OnnxRuntime.Gpu

# Windows (AMD/Intel/NVIDIA)
dotnet add package Microsoft.ML.OnnxRuntime.DirectML

Changes from Previous Version

No structural changes between v0.13.4 and v0.13.5.

Adoption Assessment

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 1 target framework; confirm the exact target used by your application.

Related Guides & Workflows

Learn how to evaluate, integrate, or audit this package in your .NET project.