Skip to content

dnn_writeTextGraph

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

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

ARGUMENTSmodel, output
FUNCTIONdnn_writeTextGraph
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Create a text representation for a binary network stored in protocol buffer format.

Note: To reduce output file size, trained weights are not included.

dnn_writeTextGraph(model: EmbindString, output: EmbindString): void;
model

A path to binary network.

output

A path to output text file to be created.

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.