Interface: VisionPreprocessingConfig
Defined in: packages/agentos/src/core/vision/types.ts:261
Preprocessing options applied to images before they enter the
vision pipeline tiers. Uses sharp under the hood.
Properties
grayscale?
optionalgrayscale:boolean
Defined in: packages/agentos/src/core/vision/types.ts:263
Convert to grayscale before OCR (improves contrast for printed text).
normalize?
optionalnormalize:boolean
Defined in: packages/agentos/src/core/vision/types.ts:279
Normalize brightness/contrast (histogram stretching).
resize?
optionalresize:object
Defined in: packages/agentos/src/core/vision/types.ts:270
Resize constraints. The image is scaled down proportionally so that neither dimension exceeds the specified maximum. No upscaling is performed.
maxHeight?
optionalmaxHeight:number
maxWidth?
optionalmaxWidth:number
sharpen?
optionalsharpen:boolean
Defined in: packages/agentos/src/core/vision/types.ts:276
Apply unsharp-mask sharpening (helps blurry scans).