Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

Haar Cascade XML files

$
0
0

@Phil_Smith wrote:

tl;dr: Where do I get the correct Haar Cascade XML files to use with ofxCvHaarFinder?

I’m playing with the opencvHaarFinderExample, and I thought I’d try using different haar cascade xml files to detect features other than the included haarcascade_frontalface_default.xml. I assumed I would need to go to the OpenCV source here and grab one of the other files: https://github.com/opencv/opencv/tree/master/data/haarcascades

When compiling with another file, I got this error in the output window: “OpenCV Error: Unspecified error (The node does not represent a user object (unknown type?)) in cvRead, file c:\projects\apothecary\apothecary\build\opencv\modules\core\src\persistence.cpp, line 4976”

And this in the debugger: “Unhandled exception at 0x76DE3522 in opencvHaarFinderExample_debug.exe: Microsoft C++ exception: cv::Exception at memory location 0x0018F824.”

I then compared the haarcascade_frontalface_default.xml included in the example with the one on github, and realized they were not at all the same. So I assume everything on github is created for a different version or format or something?

How can I try this exact same example code, but use it to look for a left eye, for example? Is there somewhere I can get haar cascade xml that is compatible with this example?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles