C# haar cascade can't read xml [closed]
Hi,
I am having a weird problem and struggling with it now..
using( CvHaarClassifierCascade cascade =
CvHaarClassifierCascade.FromFile( @"C:\opencv\2.4.11\opencv\sources\data\haarcascades\haarcascade_frontalface_alt2.xml" ) )
Above is my code. And this is really basic cascade loading function which I could find many places. But this code returns an error:
The node does not represent a user object (unknown type?)
I tried other xml files but still getting the same error..
Why did it happen and how do I fix it? Please help!!
OpenCV does not have an official C# wrapper
It's not OpenCV's official wraper but it's in NuGet and widely used.
Seems that old cacade xml and recent cacades have different format..
@Papercut, yes, the c-based wrappers can't read the new format.
it's a deficiancy of your c# wrapper (it's built on an outdated api), not an opencv problem