How do i resize my training images in fisher faces ?
I got an error saying In the Fisherfaces method all input samples (training images) must be of equal size! Expected 18769 pixels, but was 21316 pixels. in function train
How about you just resize all the images to standard dimensions you define? Did you even take a look at the documentation? Also remarks like
Please provide the code in python
will not work on this forum, instead people will tend to completely ignore your question.I dont know how to resize those images I am new to python and opencv .
My question is then, why in the world would you start programming face recognition if resizing images is still a difficult task? I suggest you start with the python tutorials step by step to get the hang of programming OpenCV in the Python languages.
Thank you .
Can you please atleast tell me why the training images need to be of equal size in fisherfaces ?
The paper on fisher faces clearly states that you need equal sized face descriptors. That is only possible with equally sized images!
Sorry . I figured it out why i was getting that error . I used to detect faces in training images and then add it to the recognizer.train function . since the size of faces detected used to differ I was getting that error . even though size of images used to be same
Like said before, after detection you need to rescale to a single uniform scale to achieve a working person recognizer!