LocalAI.Vision.Core
0.7.0
See the version list below for details.
dotnet add package LocalAI.Vision.Core --version 0.7.0
NuGet\Install-Package LocalAI.Vision.Core -Version 0.7.0
<PackageReference Include="LocalAI.Vision.Core" Version="0.7.0" />
<PackageVersion Include="LocalAI.Vision.Core" Version="0.7.0" />
<PackageReference Include="LocalAI.Vision.Core" />
paket add LocalAI.Vision.Core --version 0.7.0
#r "nuget: LocalAI.Vision.Core, 0.7.0"
#:package LocalAI.Vision.Core@0.7.0
#addin nuget:?package=LocalAI.Vision.Core&version=0.7.0
#tool nuget:?package=LocalAI.Vision.Core&version=0.7.0
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 sourcesIImagePreprocessor- Model-specific image preprocessing pipelinePreprocessProfile- Configuration for image preprocessing parametersTensorUtils- 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 | Versions 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. |
-
net10.0
- LocalAI.Core (>= 0.7.0)
- SixLabors.ImageSharp (>= 3.1.12)
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.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. |
|
|
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. |
GitHub repositories
This package is not used by any popular GitHub repositories.