1 | initial version |
To train svm you need to have Mat with features and Mat with lables ( 0 - happy, 1 - bored, 2 - sad ). But, I think, getting from images features for emotion characterization is too complicated. Read about Cascade Classifier or object detection