Skip to content

dnn_registerLayer

Core and matricesfunctionOpenCV 5.0.0
import { dnn_registerLayer } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTStype, factory
FUNCTIONdnn_registerLayer
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Register a synchronous TypeScript DNN layer factory. It receives borrowed model blobs and returns shape and forward callbacks. Forward callbacks write preallocated outputs; borrowed handles expire when the callback returns.

dnn_registerLayer(type: EmbindString, factory: DNNLayerFactory): void;
type

type argument (EmbindString).

factory

factory argument (DNNLayerFactory).

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.