dnn_registerLayer
import { dnn_registerLayer } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTStype, factory
FUNCTIONdnn_registerLayer
RETURN TYPEvoid
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;typetype argument (EmbindString).
factoryfactory 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.