gapi_infer
import { gapi_infer } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
Construct native graph inference for named tensor/image inputs, one region, or a list of regions. Compile with a matching OpenCV DNN network tag. Region inference requires a single image input with explicit preprocessing.
gapi_infer(tag: EmbindString, regions: GArray_Rect, inputs: GInferInputs): GInferListOutputs;3 available overloads
gapi_infer(_0: EmbindString, _1: GInferInputs): GInferOutputs;gapi_infer(tag: EmbindString, region: GOpaque_Rect, inputs: GInferInputs): GInferOutputs;gapi_infer(tag: EmbindString, regions: GArray_Rect, inputs: GInferInputs): GInferListOutputs;_00 argument (EmbindString).
_11 argument (GInferInputs).
tagtag argument (EmbindString).
regionregion argument (GOpaque_Rect).
inputsinputs argument (GInferInputs).
regionsregions argument (GArray_Rect).
The GInferListOutputs result. Release returned native handles with using or delete(), including handles nested in results.
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.