Skip to content

dnn_Net_readFromModelOptimizer

Deep neural networksfunctionOpenCV 5.0.0
import { dnn_Net_readFromModelOptimizer } from '@banou/opencv-wasm'

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

ARGUMENTSxml, bin
FUNCTIONdnn_Net_readFromModelOptimizer
RETURN TYPEdnn_Net
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Destructor frees the net only if there aren't references to the net anymore. Create a network from Intel's Model Optimizer intermediate representation (IR).

dnn_Net_readFromModelOptimizer(xml: EmbindString, bin: EmbindString): dnn_Net;
xml

XML configuration file with network's topology.

bin

Binary file with trained weights. Networks imported from Intel's Model Optimizer are launched in Intel's Inference Engine backend.

Returns

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