I was reading the docs for FaceRecognizer::train() and in the parms section is the "labels".
Says this:
The labels corresponding to the images have to be given either as a vector<int> or a
If vector<int> isn't the only way, then that sentence is incomplete.
The same in older docs version (example: 2.4).