4
self.model = (CvHaarClassifierCascade *) cvLoad([file cStringUsingEncoding:NSASCIIStringEncoding], 0, 0, 0);
我發現下面的錯誤。
OpenCV Error: Unspecified error (The node does not represent a user object (unknown type?)) in cvRead, file /Users/robin/Projects/OpenCVForiPhone/opencv/opencv/modules/core/src/persistence.cpp, line 4858
任何人都可以幫助我解決這個問題嗎?
該錯誤意味着OpenCV的是無法識別的XML文件的數據。檢查您是否傳遞正確的文件。 – nac 2012-04-03 07:20:52