Skip to content

gapi_ie_PyParams

gapiclassOpenCV 5.0.0
import { gapi_ie_PyParams } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSgapi_ie_PyParams
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods.

NB: Used by python wrapper This class can be marked as SIMPLE, because it's implemented as pimpl

Constructors and members

static new

Create network parameter configuration. These parameter objects describe an optional OpenVINO or ONNX Runtime backend, which is not linked in this WASM build. Use gapi.dnn.Params for executable CPU inference.

new(tag: EmbindString, model: EmbindString, device: EmbindString): gapi_ie_PyParams;
3 available overloads
new(): gapi_ie_PyParams;
new(tag: EmbindString, model: EmbindString, weights: EmbindString, device: EmbindString): gapi_ie_PyParams;
new(tag: EmbindString, model: EmbindString, device: EmbindString): gapi_ie_PyParams;
tag

tag argument (EmbindString).

model

model argument (EmbindString).

weights

weights argument (EmbindString).

device

device argument (EmbindString).

Returns

The gapi_ie_PyParams result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

constInput

Bind a constant network input. These parameter objects describe an optional OpenVINO or ONNX Runtime backend, which is not linked in this WASM build. Use gapi.dnn.Params for executable CPU inference.

constInput(layer_name: EmbindString, data: Mat, hint: number): gapi_ie_PyParams;
2 available overloads
constInput(layer_name: EmbindString, data: Mat): gapi_ie_PyParams;
constInput(layer_name: EmbindString, data: Mat, hint: number): gapi_ie_PyParams;
layer_name

layer name argument (EmbindString).

data

data argument (Mat).

hint

hint argument (number).

Returns

The gapi_ie_PyParams result.

cfgNumRequests

Configure num requests. These parameter objects describe an optional OpenVINO or ONNX Runtime backend, which is not linked in this WASM build. Use gapi.dnn.Params for executable CPU inference.

cfgNumRequests(nireq: number): gapi_ie_PyParams;
nireq

nireq argument (number).

Returns

The gapi_ie_PyParams result.

cfgBatchSize

Configure batch size. These parameter objects describe an optional OpenVINO or ONNX Runtime backend, which is not linked in this WASM build. Use gapi.dnn.Params for executable CPU inference.

cfgBatchSize(size: number): gapi_ie_PyParams;
size

size argument (number).

Returns

The gapi_ie_PyParams result.

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.