Skip to content

gapi_dnn_Params

Core and matricesclassOpenCV 5.0.0
import { gapi_dnn_Params } from '@banou/opencv-wasm'

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

ARGUMENTSConstructor or factory
CLASSgapi_dnn_Params
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.

Configuration for a named OpenCV DNN graph network. Retains the supplied Net and selects its CPU backend. Configure image preprocessing before packaging with cv.gapi.networks.

Constructors and members

static new

Create an owned gapi_dnn_Params object. Release native handles with using or delete().

new(tag: EmbindString, net: dnn_Net): gapi_dnn_Params;
tag

tag argument (EmbindString).

net

net argument (dnn_Net).

Returns

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

cfgInput

Configure image preprocessing for a named network input using native blobFromImage. Size is required; scale defaults to 1, mean to zero, and swapRB/crop to false. Omit this call for prepared float tensors.

cfgInput(name: EmbindString, options: GraphDNNInputOptions): void;
name

name argument (EmbindString).

options

options argument (GraphDNNInputOptions).

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.