Skip to content

createStreamAPI

TypeScript helpershelperOpenCV 5.0.0
ARGUMENTSSee signature below
HELPERcreateStreamAPI
RETURN TYPESee signature below
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Create file and iterable source factories for one isolated OpenCV instance.

export declare const createStreamAPI: (cv: MainModule) => {
    make_capture_src: (path: string, apiPreference?: number) => GraphSource;
    make_js_src: (frames: GraphFrames) => GraphSource;
    get_streaming_source: (source: GraphSource | GraphFrames) => GraphSource;
};

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.