1
4

1 回答 1

1

The correct function signature is

CVAPI(CvSeq*) cvHaarDetectObjects( const CvArr* image, CvHaarClassifierCascade* cascade, CvMemStorage* storage, double scale_factor CV_DEFAULT(1.1), int min_neighbors CV_DEFAULT(3), int flags CV_DEFAULT(0), CvSize min_size CV_DEFAULT(cvSize(0,0)), CvSize max_size CV_DEFAULT(cvSize(0,0)));

So that line should be something like

CvSeq* faces = cvHaarDetectObjects(small_img, block1_cascade, block1_storage, 1.1, 2, 0/*CV_HAAR_DO_CANNY_PRUNING*/,cvSize(10, 10), cvSize(30, 30));

于 2013-06-20T12:18:36.880 回答