Skip to content

dnn_readTensorFromONNX

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

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

ARGUMENTSpath
FUNCTIONdnn_readTensorFromONNX
RETURN TYPEMat
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Creates blob from .pb file.

dnn_readTensorFromONNX(path: EmbindString): Mat;
path

to the .pb file with input tensor.

Returns

Mat. 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.