Package org.pytorch.executorch.extension.image
See: Description
-
Class Summary Class Description ImageProcessor Converts camera frames and bitmaps into the normalized [1, 3, H, W]float tensors vision models expect, replacing the hand-rolled resize/normalize loops apps otherwise write per model.Normalization Per-channel RGB normalization, applied as (pixel * scaleFactor - mean[c]) / standardDeviation[c].Builder Builder class for ImageProcessorConfig for Java interoperability. ImageProcessorConfig Configuration for ImageProcessor. LetterboxPadding Offset of the resized content within the letterboxed output, in pixels. -
Enum Summary Enum Description ResizeMode How the source image is fitted to the target dimensions. LetterboxAnchor Where letterboxed content sits within the padded canvas. ImageOrientation EXIF orientation of the source image. YuvFormat Chroma layout of semi-planar YUV input. YuvRange Quantization range of YUV samples.