Using the OpenCV 2.3.1 binaries (as mentioned in my previous post) did not give me the expected result as the CascadeClassifier class was always returning <incomplete type> and the application was crashing.

So I decided to build OpenCV on my system. I followed the instructions given at http://karytech.blogspot.com/2011/09/opencv-231-on-ubuntu-1010-or-later.html with a small change that I also enabled V4L as I needed the support to capture images from my usb webcam.
I then compiled the program using CMake, and everything started working correctly. I compiled and ran the FaceDetect sample program from http://opencv.itseez.com/doc/tutorials/objdetect/cascade_classifier/cascade_classifier.html#cascade-classifier

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s