Quantcast
Channel: OpenCV Q&A Forum - Latest question feed
Viewing all articles
Browse latest Browse all 19555

facerecognizer all images must be of equal size

$
0
0
so i'm running code on : http://docs.opencv.org/2.4/modules/contrib/doc/facerec/tutorial/facerec_video_recognition.html But i keep getting these errors. What am i doing wrong? Clearly there is something wrong with the jpg pictures provided. I'm sure imwrite supports jpg. And if they need to be of equal size, what can i do to do that (and why is that not done by the code itself). Any help greatly appreciated! ./test lbpcascade_frontalface.xml test.csv 0 OpenCV Error: Unsupported format or combination of formats (In the Fisherfaces method all input samples (training images) must be of equal size! Expected 187489 pixels, but was 197136 pixels.) in train, file /tmp/opencv20160422-16392-n5achg/opencv-2.4.12/modules/contrib/src/facerec.cpp, line 564 libc++abi.dylib: terminating with uncaught exception of type cv::Exception: /tmp/opencv20160422-16392-n5achg/opencv-2.4.12/modules/contrib/src/facerec.cpp:564: error: (-210) In the Fisherfaces method all input samples (training images) must be of equal size! Expected 187489 pixels, but was 197136 pixels. in function train

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>