gapi_dnn_Params
import { gapi_dnn_Params } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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;tagtag argument (EmbindString).
netnet argument (dnn_Net).
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;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;namename argument (EmbindString).
optionsoptions 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.