Skip to main content

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?

optional grayscale: boolean

Defined in: packages/agentos/src/core/vision/types.ts:263

Convert to grayscale before OCR (improves contrast for printed text).


normalize?

optional normalize: boolean

Defined in: packages/agentos/src/core/vision/types.ts:279

Normalize brightness/contrast (histogram stretching).


resize?

optional resize: 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?

optional maxHeight: number

maxWidth?

optional maxWidth: number


sharpen?

optional sharpen: boolean

Defined in: packages/agentos/src/core/vision/types.ts:276

Apply unsharp-mask sharpening (helps blurry scans).