Skip to content

GraphDescriptors

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

Only matrix ports need a layout. Other ports have null metadata.

export type GraphDescriptors<Ports extends GraphPorts> = {
    [Index in keyof Ports]: Ports[Index] extends 'mat' ? GraphMatDescriptor : null;
};

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.