xvision 0.0.2
xvision: ^0.0.2 copied to clipboard
A pure Dart computer vision and image processing library for real-time pixel manipulation, convolutions, and ML pre-processing.
XVision #
A pure Dart computer vision and image processing library.
Built with zero native dependencies, XVision is highly portable and features zero-copy Region of Interest (ROI) views, optimized pixel buffer recycling, custom filters, and ML pre-processing.
Features #
- Color Spaces & Operations: Convert RGB/HSV/Grayscale, adjust brightness/contrast/gamma, split/merge/swap channels, blend layers, and replace target colors.
- Geometric Transforms: Crop regions of interest (ROI), translate, rotate, flip, pad, and resize using nearest-neighbor, bilinear, or bicubic interpolation.
- Blurs & Convolutions: Apply Gaussian, Median, Box blurs, sharpening, custom kernel convolutions, Sobel/Laplacian gradients, and Canny edge detection.
- Drawing Engine: Draw lines, circles, polygons, filled/empty rectangles, and text overlays directly onto pixel buffers.
- Thresholding & Binarization: Segment images using static, adaptive local-mean, or Otsu automatic thresholding.
- Morphological Operations: Dilate, erode, open, and close structures with customizable structuring element sizes.
- Histogram Equalization: Improve contrast globally or locally using Contrast-Limited Adaptive Histogram Equalization (CLAHE).
- ML Pre-processing: Prepare inputs for neural network inference with letterboxing, layout transposition (NHWC/NCHW), center cropping, and tensor formatting.
- Memory Optimization: Recycle pixel byte arrays via
XVBufferPoolto eliminate garbage collection latency in real-time pipelines. - Built-in Codecs: Encode and decode PNG and JPEG formats directly to and from raw pixel data.