MasteringOpenCV / code

Code for the book "Mastering OpenCV with Practical Computer Vision Projects" by Packt Publishing 2012.
Other
2.71k stars 1.64k forks source link

Chapter 8 Opencv assertion when calling subspaceProject function #64

Closed jainanshul closed 8 years ago

jainanshul commented 8 years ago

I am getting an exception that size of eigenvectors doesn't match the size of preprocessedFace from opencv when calling https://github.com/MasteringOpenCV/code/blob/master/Chapter8_FaceRecognition/recognition.cpp#L136.

I checked the size of eigenvectors matrix and it indeed is not the same size (example: 5625 x 99) where as my faces are of size (75 x 75).

@shervinemami Would you know what might be wrong here?

jainanshul commented 8 years ago

Never mind, I forgot to call the reshape function.