Skip to content

gapi_infer

Core and matricesfunctionOpenCV 5.0.0
import { gapi_infer } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTS_0, _1, tag, region
FUNCTIONgapi_infer
RETURN TYPEGInferOutputs
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

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;
_0

0 argument (EmbindString).

_1

1 argument (GInferInputs).

tag

tag argument (EmbindString).

region

region argument (GOpaque_Rect).

inputs

inputs argument (GInferInputs).

regions

regions argument (GArray_Rect).

Returns

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.