The haartraining program has completed successfully but no XML file is generated, just some numbered folders. Am I doing something wrong?
The haartraining program doesn’t actually output an XML file, just the numbered folders. These can be loaded into OpenCV, but you may find it easier to convert these folders into an XML file, which you can do with a program called “haarconv.” You can download “haarconv” from the “files” section of the OpenCV Yahoo Group. • Question: When I call cvGoodFeaturesToTrack I get the error “bad number of channels”. I am reading the jpg file you provided using cvvLoadImage and I can’t figure out why it’s giving this error. Answer: When you load a JPG image it will contain 3 channels, and that function only works on 1 channel images. You can use cvCvtColor() to convert the image to grayscale like this: gray = cvCreateImage(cvSize(image->width,image->height), IPL_DEPTH_8U, 1); cvCvtColor(image, gray, CV_BGR2GRAY); • Question: Once I’ve detected the corners in the image, is there a way to cluster nearby corners into objects? Answer: You can try using the cvKMeans2 clustering function to separate t