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 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

Leave a Reply

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

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

Facebook photo

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

Connecting to %s