人脸识别C++源代码
pt1.y = img->height - r->y*scale;
pt2.y = img->height - (r->y+r->height)*scale; #else
pt1.y = r->y*scale;
pt2.y = (r->y+r->height)*scale;
#endif
cvRectangle( img, pt1, pt2, CV_RGB(255,255,0), 3 ); }
}
cvShowImage(WINNAME, img );
//cvReleaseImage( &temp );
(转自阿须数码)
}
#ifdef _EiC
main(1,"facedetect.c");
#endif