loadTrainingData2 (cv.Facemark) - MATLAB File Help |
A utility to load facial landmark dataset from a single file
[imagesPaths, landmarks, success] = cv.Facemark.loadTrainingData2(filename)
[...] = cv.Facemark.loadTrainingData2(..., 'OptionName',optionValue, ...)
x
and y
values of facial landmarks
points separated by a space.{{[x,y], ...}, ...}
.' '
.This dataset format simply consists of a single file, where each line contains an image path followed by list of x/y coordinates of its corresponding annotation. Number of points of each sample is not included, and the code will load all value pairs until the end of line.
Example of file format expected:
/path/to/image1.jpg 336.820955 240.864510 334.238298 260.922709 ...
/path/to/image2.jpg 376.158428 230.845712 376.736984 254.924635 ...
...
Access | public |
Sealed | false |
Static | true |