MasteringOpenCV / code

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

Offline mode recognition CHapter 8 #24

Closed DangThu closed 10 years ago

DangThu commented 10 years ago

Excuse me. Before i use your new code in this book, I read your page: http://www.shervinemami.info/faceRecognition.html

and i see the tutorial and code working in offline mode in Servo Magazine page show how to recognize faces from image: http://www.cognotics.com/opencv/servo_2007_series/part_5/index.html

I built the code as instruction. The program did not report any errors. But when i run the program, the black window appeared and disappeared right after that and not show the window to type the command. I don't understand why. I had the necessary files. The output when i buit shows that "Could not find or open pdb file". What happened? Could you show me how to fix this problem? And can i use your system face recognition in shervinemami.info in both online and offline mode ? Thanks for reading and help.

shervinemami commented 10 years ago

I'm not sure but that error sounds like a Visual Studio problem, so either you didn't setup your project properly, or Visual Studio is giving a bug. Both of these are very common problems, so keep trying. Also, you might want to try something newer than the Servo Magazine (offline mode) code to see if it works instead, such as my facerec webpage (it does both online and offline modes) or the code from this chapter 8 (it only does online mode). All 3 projects will give similar results but have different interfaces, and the code in Ch8 does several stages of face preprocessing and can also use Fisher Faces, so it will most likely give the best results of the 3 projects.