From: Dominic L. <ma...@us...> - 2005-10-24 15:42:46
|
Update of /cvsroot/robotflow/RobotFlow/OpenCV/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28016 Modified Files: CvFaceDetection.cc Log Message: throw exception when haar features files are not found Index: CvFaceDetection.cc =================================================================== RCS file: /cvsroot/robotflow/RobotFlow/OpenCV/src/CvFaceDetection.cc,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** CvFaceDetection.cc 28 Jul 2005 14:59:47 -0000 1.1 --- CvFaceDetection.cc 24 Oct 2005 15:42:38 -0000 1.2 *************** *** 112,115 **** --- 112,119 ---- m_haarClassifier2 = (CvHaarClassifierCascade*)cvLoad( "haarcascade_profileface.xml", 0, 0, 0 ); + if (!m_haarClassifier1 || !m_haarClassifier2) { + throw new GeneralException("Cannot load haar classifiers : from files haarcascade_frontalface_alt2.xml, haarcascade_profileface.xml",__FILE__,__LINE__); + } + m_curSkinROI = new CvRect[m_maxNumSkinRegions]; |