Development Environment :
- MATLAB R2011a
- OpenCV 2.2
"the node does not represent a user object"Solution:
- [Option]refer this official article step 11
The error looks like this: Unspecified error (The node does not represent a user object (unknown type?)) in function cvRead, C:\Program Files\OpenCV\cxcore\src\cxpersistence.cpp (5040)
The solution is to use cxcored.lib, cvd.lib and highguid.lib instead of cxcored_i7.lib, cv.lib and highgui.lib.You can use highgui.lib, but you get an error after the face detected image has been displayed and you're unloading it.
Another simple workaround is to call any function from cv.lib before the call to cvLoad. For example: create a dummy empty image, apply cvErode to it and release the image.
- 在程式內加入：CvSeq* faces = cvHaarDetectObjects( img, cascade, storage, 1.1, 2, 0/*CV_HAAR_DO_CANNY_PRUNING*/, cvSize(30, 30) );
"unresolved external symbol _cvHaarDetectObjects referenced"Solution：
- add "opencv_objdetect220.lib" to your opencv library reference (In this case, added on mexopts.bat file which opencv mex config : "set LINKFLAGS=")