Skip to content

gapi_ov_PyParams

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

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

ARGUMENTSConstructor or factory
CLASSgapi_ov_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, blob_path: EmbindString, device: EmbindString): gapi_ov_PyParams;
3 available overloads
new(): gapi_ov_PyParams;
new(tag: EmbindString, model_path: EmbindString, bin_path: EmbindString, device: EmbindString): gapi_ov_PyParams;
new(tag: EmbindString, blob_path: EmbindString, device: EmbindString): gapi_ov_PyParams;
tag

tag argument (EmbindString).

model_path

model path argument (EmbindString).

bin_path

bin path argument (EmbindString).

device

device argument (EmbindString).

blob_path

blob path argument (EmbindString).

Returns

The gapi_ov_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.

cfgPluginConfig

Configure plugin config. 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.

cfgPluginConfig(config: map_string_and_string): gapi_ov_PyParams;
config

config argument (map_string_and_string).

Returns

The gapi_ov_PyParams result.

cfgInputTensorLayout

Configure input tensor layout. 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.

cfgInputTensorLayout(tensor_layout: EmbindString): gapi_ov_PyParams;
tensor_layout

tensor layout argument (EmbindString).

Returns

The gapi_ov_PyParams result.

cfgInputTensorLayout1

Configure input tensor layout. 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.

cfgInputTensorLayout1(layout_map: map_string_and_string): gapi_ov_PyParams;
layout_map

layout map argument (map_string_and_string).

Returns

The gapi_ov_PyParams result.

cfgInputModelLayout

Configure input model layout. 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.

cfgInputModelLayout(tensor_layout: EmbindString): gapi_ov_PyParams;
tensor_layout

tensor layout argument (EmbindString).

Returns

The gapi_ov_PyParams result.

cfgInputModelLayout1

Configure input model layout. 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.

cfgInputModelLayout1(layout_map: map_string_and_string): gapi_ov_PyParams;
layout_map

layout map argument (map_string_and_string).

Returns

The gapi_ov_PyParams result.

cfgOutputTensorLayout

Configure output tensor layout. 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.

cfgOutputTensorLayout(tensor_layout: EmbindString): gapi_ov_PyParams;
tensor_layout

tensor layout argument (EmbindString).

Returns

The gapi_ov_PyParams result.

cfgOutputTensorLayout1

Configure output tensor layout. 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.

cfgOutputTensorLayout1(layout_map: map_string_and_string): gapi_ov_PyParams;
layout_map

layout map argument (map_string_and_string).

Returns

The gapi_ov_PyParams result.

cfgOutputModelLayout

Configure output model layout. 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.

cfgOutputModelLayout(tensor_layout: EmbindString): gapi_ov_PyParams;
tensor_layout

tensor layout argument (EmbindString).

Returns

The gapi_ov_PyParams result.

cfgOutputModelLayout1

Configure output model layout. 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.

cfgOutputModelLayout1(layout_map: map_string_and_string): gapi_ov_PyParams;
layout_map

layout map argument (map_string_and_string).

Returns

The gapi_ov_PyParams result.

cfgOutputTensorPrecision

Configure output tensor precision. 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.

cfgOutputTensorPrecision(precision: number): gapi_ov_PyParams;
precision

precision argument (number).

Returns

The gapi_ov_PyParams result.

cfgOutputTensorPrecision1

Configure output tensor precision. 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.

cfgOutputTensorPrecision1(precision_map: map_string_and_int): gapi_ov_PyParams;
precision_map

precision map argument (map_string_and_int).

Returns

The gapi_ov_PyParams result.

cfgReshape

Configure reshape. 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.

cfgReshape(new_shape: size_tVector): gapi_ov_PyParams;
new_shape

new shape argument (size_tVector).

Returns

The gapi_ov_PyParams result.

cfgReshape1

Configure reshape. 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.

cfgReshape1(new_shape_map: map_string_and_vector_size_t): gapi_ov_PyParams;
new_shape_map

new shape map argument (map_string_and_vector_size_t).

Returns

The gapi_ov_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_ov_PyParams;
nireq

nireq argument (number).

Returns

The gapi_ov_PyParams result.

cfgMean

Configure mean. 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.

cfgMean(mean_values: FloatVector): gapi_ov_PyParams;
mean_values

mean values argument (FloatVector).

Returns

The gapi_ov_PyParams result.

cfgMean1

Configure mean. 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.

cfgMean1(mean_map: map_string_and_vector_float): gapi_ov_PyParams;
mean_map

mean map argument (map_string_and_vector_float).

Returns

The gapi_ov_PyParams result.

cfgScale

Configure scale. 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.

cfgScale(scale_values: FloatVector): gapi_ov_PyParams;
scale_values

scale values argument (FloatVector).

Returns

The gapi_ov_PyParams result.

cfgScale1

Configure scale. 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.

cfgScale1(scale_map: map_string_and_vector_float): gapi_ov_PyParams;
scale_map

scale map argument (map_string_and_vector_float).

Returns

The gapi_ov_PyParams result.

cfgResize

Configure resize. 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.

cfgResize(interpolation: number): gapi_ov_PyParams;
interpolation

interpolation argument (number).

Returns

The gapi_ov_PyParams result.

cfgResize1

Configure resize. 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.

cfgResize1(interpolation: map_string_and_int): gapi_ov_PyParams;
interpolation

interpolation argument (map_string_and_int).

Returns

The gapi_ov_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.