1 | initial version |
For the current algorithms you have to pass your input images as grayscale. You can use cv::cvtColor to convert color images into their grayscale representation:
Algorithms like Eigenfaces and Fisherfaces require your training data to be of equal size, you can simple use cv::resize to do so:
Pay special attention to the documentation on cv::FaceRecognizer at:
Just look at the full source code listing on "Face Recognition in Videos" for example, because all preprocessing is done in there, too.
2 | grammar |
For the current algorithms you have to pass your input images as grayscale. You can use cv::cvtColor to convert color images into their grayscale representation:
Algorithms like Eigenfaces and Fisherfaces require your training data to be of equal size, you size. You can simple use cv::resize to do so:resize your images:
Pay special attention to the documentation on cv::FaceRecognizer at:
Just look at the full source code listing on "Face Recognition in Videos" for example, because all preprocessing is done in there, too.