Skip to content

gapi_networks

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

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

ARGUMENTSparameters
FUNCTIONgapi_networks
RETURN TYPEgapi_GNetPackage
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Create a native network package from an array of OpenCV DNN parameter objects. Tags must be unique. The namespaced cv.gapi.networks adapter instead takes separate arguments.

gapi_networks(parameters: readonly gapi_dnn_Params[]): gapi_GNetPackage;
parameters

parameters argument (readonly gapi_dnn_Params[]).

Returns

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