Core vision processing components for LMSupply: image loading, preprocessing, and tensor conversion utilities shared by LMSupply.Captioner and LMSupply.Ocr.
$ dotnet add package LMSupply.Vision.CoreCore vision processing infrastructure for LMSupply packages.
Provides shared image processing capabilities for vision-based AI packages:
IImageLoader - Abstraction for loading images from various sourcesIImagePreprocessor - Model-specific image preprocessing pipelinePreprocessProfile - Configuration for image preprocessing parametersTensorUtils - Utilities for converting images to ONNX tensorsSixLabors.ImageSharp - Cross-platform image processing (no native dependencies)LMSupply.Core - Shared infrastructure (caching, downloading, ONNX utilities)using LMSupply.Vision;
// Load and preprocess an image for a specific model
var preprocessor = new ImagePreprocessor();
var tensor = preprocessor.Preprocess("image.jpg", PreprocessProfiles.ImageNet);