Skip to content

DNNLayerImplementation

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

Synchronous CPU callbacks. Write into the preallocated outputs; do not resize or retain borrowed handles.

export type DNNLayerImplementation = {
  getMemoryShapes(inputs: readonly (readonly number[])[]): readonly (readonly number[])[],
  forward(inputs: readonly Mat[], outputs: readonly Mat[]): undefined,
}

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.