+2  A: 

It appears you're using OpenCV's object detection code. This error, along with your description of the situation, indicates that you need to have a classifier XML file present in your application's working directory for OpenCV to work properly. Said XML file should be located within your project folder; simply copy it into the Debug folder for your application to work properly.

Adam Maras