我想我用得到的OpenCV運行以下 sample codeOpenCV的3.0.0 FaceDetect樣品失敗
我得到顯示以下錯誤行:
OpenCV Error: Assertion failed (!empty()) in cv::CascadeClassifier::detectMultiScale, file ..\..\..\..\opencv\modules\objdetect\src\cascadedetect.cpp, line 1580
Exception in thread "main" CvException [org.opencv.core.CvException: cv::Exception: ..\..\..\..\opencv\modules\objdetect\src\cascadedetect.cpp:1580: error: (-215) !empty() in function cv::CascadeClassifier::detectMultiScale
]
at org.opencv.objdetect.CascadeClassifier.detectMultiScale_1(Native Method)
at org.opencv.objdetect.CascadeClassifier.detectMultiScale(CascadeClassifier.java:176)
at org.maxbit.opencv.samples.DetectFaceDemo.run(SampleB.java:29)
at org.maxbit.opencv.samples.SampleB.main(SampleB.java:51)
任何機構可以告訴我那是什麼錯誤意味着如何調試?
感謝那個比較好我想念拼寫到XML:S的路徑,但現在我有這個問題,它在這一行失敗:https://github.com/Itseez/opencv/blob/master/modules/cor e/src/ocl.cpp#L3961 – maxbit89 2014-12-07 17:48:56
@ maxbit89對不起。我忍不住了。用更多細節分開提問可能會有幫助。 – Kiran 2014-12-07 17:55:46
這裏是新的問題希望這有助於:S http://stackoverflow.com/questions/27346517/open-cv-3-0-0-face-detection-detectmultiscale-fails – maxbit89 2014-12-07 19:14:48