Skip to content

face_loadDatasetList

facefunctionOpenCV 5.0.0
import { face_loadDatasetList } from '@banou/opencv-wasm'

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

ARGUMENTSimageList, annotationList, images, annotations
FUNCTIONface_loadDatasetList
RETURN TYPEboolean
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

A utility to load list of paths to training image and annotation file.

String imageFiles = "images_path.txt";
String ptsFiles = "annotations_path.txt";
std::vector<String> images_train;
std::vector<String> landmarks_train;
loadDatasetList(imageFiles,ptsFiles,images_train,landmarks_train);
face_loadDatasetList(imageList: EmbindString, annotationList: EmbindString, images: StringVector, annotations: StringVector): boolean;
imageList

The specified file contains paths to the training images.

annotationList

The specified file contains paths to the training annotations.

images

The loaded paths of training images.

annotations

The loaded paths of annotation files.

Example of usage:

Returns

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