/ TroubleShooting

TrubleShooting : OpenCV "the node does not represent a user object" & "unresolved external symbol _cvHaarDetectObjects referenced"

Development Environment :

  • MATLAB R2011a
  • OpenCV 2.2
  • Mex

"the node does not represent a user object"

  • [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.

"unresolved external symbol _cvHaarDetectObjects referenced"

  • add "opencv_objdetect220.lib" to your opencv library reference (In this case, added on mexopts.bat file which opencv mex config : "set LINKFLAGS=")