LocalAI.Vision.Core 0.6.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package LocalAI.Vision.Core --version 0.6.0
                    
NuGet\Install-Package LocalAI.Vision.Core -Version 0.6.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="LocalAI.Vision.Core" Version="0.6.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="LocalAI.Vision.Core" Version="0.6.0" />
                    
Directory.Packages.props
<PackageReference Include="LocalAI.Vision.Core" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add LocalAI.Vision.Core --version 0.6.0
                    
#r "nuget: LocalAI.Vision.Core, 0.6.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package LocalAI.Vision.Core@0.6.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=LocalAI.Vision.Core&version=0.6.0
                    
Install as a Cake Addin
#tool nuget:?package=LocalAI.Vision.Core&version=0.6.0
                    
Install as a Cake Tool

LocalAI.Vision.Core

Core vision processing infrastructure for LocalAI packages.

Purpose

Provides shared image processing capabilities for vision-based AI packages:

  • LocalAI.Captioner - Image captioning
  • LocalAI.Ocr - Optical character recognition

Key Components

  • IImageLoader - Abstraction for loading images from various sources
  • IImagePreprocessor - Model-specific image preprocessing pipeline
  • PreprocessProfile - Configuration for image preprocessing parameters
  • TensorUtils - Utilities for converting images to ONNX tensors

Dependencies

  • SixLabors.ImageSharp - Cross-platform image processing (no native dependencies)
  • LocalAI.Core - Shared infrastructure (caching, downloading, ONNX utilities)

Usage

using LocalAI.Vision;

// Load and preprocess an image for a specific model
var preprocessor = new ImagePreprocessor();
var tensor = preprocessor.Preprocess("image.jpg", PreprocessProfiles.ImageNet);
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (3)

Showing the top 3 NuGet packages that depend on LocalAI.Vision.Core:

Package Downloads
LocalAI.Ocr

A simple .NET library for local OCR with automatic model downloading from HuggingFace. Features 2-stage detection+recognition pipeline using PaddleOCR models. Supports CUDA, DirectML, and CoreML GPU acceleration.

LocalAI.Detector

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.

LocalAI.Segmenter

A lightweight, zero-configuration image segmenter for .NET. Supports semantic and instance segmentation with SegFormer and MobileSAM models. Start small. Download what you need. Run locally.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.7.2 102 12/15/2025
0.7.1 106 12/15/2025
0.7.0 331 12/14/2025
0.6.0 124 12/13/2025