Skip to content

GraphStream

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

Serial graph execution over frame sources. Use await using or await delete() to release retained handles.

export declare class GraphStream implements GraphStreamHandle {
    #private;
    constructor(graph: GComputation, options?: GCompileArgs);
    setSource(source: GraphSource | GraphFrames): void;
    start(): void;
    running(): boolean;
    pull(): Promise<GraphValue[] | null>;
    stop(): Promise<void>;
    delete(): Promise<void>;
    [Symbol.asyncDispose](): Promise<void>;
}

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.