TypeScript helpers
All modules / typescript
TypeScript conveniences for the native CPU graph API and Python's graph factories.
createOpenCVhelperLoad an isolated CPU OpenCV WebAssembly instance in a browser, worker or Node.js.
createStreamAPIhelperCreate file and iterable source factories for one isolated OpenCV instance.
createValueAPIhelperValue factories use this instance's native algorithms for geometric operations.
CV_MAKETYPEhelperConstruct an OpenCV 5 matrix type code with a supported depth and 1 to 128 channels.
decodeImagehelperDecode encoded bytes with native codecs on the initialized shared engine, in browsers or Node.
encodeImagehelperEncode a shared-engine matrix to independent image bytes; no DOM is required.
GraphDescriptorstypeOnly matrix ports need a layout. Other ports have null metadata.
GraphNodestypeNative graph nodes in the order declared by a custom operation.
GraphPortstypeA nonempty tuple of graph port names, inferred from a literal operation signature.
GraphStreamtypeSerial graph execution over frame sources. Use await using or await delete() to release retained handles.
GraphValuestypeRuntime values in the order declared by a custom operation.
initOpenCVhelperInitialize the shared OpenCV instance used by named imports such as Mat and GaussianBlur.
installGraphStreaminghelperInstall the streaming adapter on this instance's computation prototype.
makeIterableSourcehelperConvert a synchronous or asynchronous iterable to a source with explicit end-of-stream cleanup.
matFromArrayhelperCopy row-major interleaved values into an owned native matrix on the shared engine.
matFromImageDatahelperCopy canvas RGBA bytes into an owned CV_8UC4 matrix on the initialized shared engine. Dispose after use.
OpenCVtypeAll native functions, classes, constants and enums in this build.
OpenCVOptionstypeLoading options; use wasmUrl with bundlers or wasmBinary for an in-memory binary.
toImageDatahelperCopy a shared-engine 8-bit matrix to independent RGBA ImageData, handling row strides.
TypedGraphKerneltypeSynchronous callback with borrowed matrix/primitive handles. Fill matrices or assign output values.
TypedGraphOperationtypeA native operation with its exact node tuple and callback signature preserved by TypeScript.
TypedGraphSignaturetypeMatrix outputs require metadata; purely scalar, array and opaque operations can omit it.
valueAPIhelperJavaScript value constructors and OpenCV 5 matrix type constants/functions.
No matches. Try an algorithm name, a module, or a shorter phrase.