Skip to content

dnn_imagesFromBlob

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

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

ARGUMENTSblob_, images_
FUNCTIONdnn_imagesFromBlob
RETURN TYPEvoid
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Parse a 4D blob and output the images it contains as 2D arrays through a simpler data structure (std::vectorcv::Mat).

dnn_imagesFromBlob(blob_: Mat, images_: MatVector): void;
blob_

4 dimensional array (images, channels, height, width) in floating point precision (CV_32F) from which you would like to extract the images.

images_

Output destination, filled by the native operation. array of 2D Mat containing the images extracted from the blob in floating point precision (CV_32F). They are non normalized neither mean added. The number of returned images equals the first dimension of the blob (batch size). Every image has a number of channels equals to the second dimension of the blob (depth).

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.