Skip to content

GraphDNNInputOptions

Core and matricestypeOpenCV 5.0.0
import type { GraphDNNInputOptions } from '@banou/opencv-wasm'

Explicit image preprocessing for a named DNN graph input. Omit cfgInput for raw float tensors.

export type GraphDNNInputOptions = {
  size: Size,
  scale?: number,
  mean?: Scalar,
  swapRB?: boolean,
  crop?: boolean,
}

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.