Skip to content

createOpenCV

TypeScript helpershelperOpenCV 5.0.0
import { createOpenCV } from '@banou/opencv-wasm'
ARGUMENTSoptions
HELPERcreateOpenCV
RETURN TYPESee signature below
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Load an isolated CPU OpenCV WebAssembly instance in a browser, worker or Node.js.

export declare const createOpenCV: (options?: OpenCVOptions) => Promise<OpenCV>;
options

Asset-loading and native logging options.

Returns

The fully typed API after native initialization. Release native objects with delete() or using; handles cannot be shared between instances.

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.