What am I doing wrong? This is happening with both the master and the experimental version. I have also tried changing the parameters. I am using CK extended database files as the input image.
dell@gandalf:~/Desktop/emotime/emotime-1.2-experimental/assets$ ./emo_detector_cli svm ../resources/haarcascade_frontalface_default.xml ../resources/haarcascade_eye.xml 53 53 1 5 8 ../../svm_1vsallext_1_5_8_95c2eb0b58/*.xml
Insert the image file path:
/home/dell/Downloads/cohn-kanade-images/S045/001/S045_001_00000001.png
Processing '/home/dell/Downloads/cohn-kanade-images/S045/001/S045_001_00000001.png'
OpenCV Error: Sizes of input arguments do not match (The sample size is different from what has been used for training) in cvPreparePredictData, file /home/dell/OpenCV/modules/ml/src/inner_functions.cpp, line 1114
terminate called after throwing an instance of 'cv::Exception'
what(): /home/dell/OpenCV/modules/ml/src/inner_functions.cpp:1114: error: (-209) The sample size is different from what has been used for training in function cvPreparePredictData
Aborted (core dumped)
What am I doing wrong? This is happening with both the master and the experimental version. I have also tried changing the parameters. I am using CK extended database files as the input image.
Please guide me.