dnn_imagesFromBlob
import { dnn_imagesFromBlob } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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.