Skip to content

GraphStreamHandle

Core and matricestypeOpenCV 5.0.0
import type { GraphStreamHandle } from '@banou/opencv-wasm'

Serial frame executor. Dispose with await using or await delete().

export type GraphStreamHandle = {
  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.