Skip to content

OpenCV

TypeScript helperstypeOpenCV 5.0.0
import type { OpenCV } from '@banou/opencv-wasm'

All native functions, classes, constants and enums in this build.

export type OpenCV = AugmentedModule & Omit<NativeNamespaces, 'gapi' | 'xfeatures2d'> & ReturnType<typeof createValueAPI> & ReturnType<typeof createGraphAPI> & {
    gapi: Omit<NativeNamespaces['gapi'], keyof ReturnType<typeof createGraphAPI> | 'wip'> & ReturnType<typeof createGraphAPI> & {
        wip: NativeNamespaces['gapi']['wip'] & ReturnType<typeof createStreamAPI>;
    };
    xfeatures2d: NativeNamespaces['xfeatures2d'] & {
        SIFT_create: MainModule['SIFT_create'];
    };
};

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.