Function opencv::face::load_dataset_list
source · pub fn load_dataset_list(
image_list: &str,
annotation_list: &str,
images: &mut Vector<String>,
annotations: &mut Vector<String>
) -> Result<bool>
Expand description
A utility to load list of paths to training image and annotation file.
Parameters
- 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:
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);