Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

CascadeClassifier VS. cvHaarCascadeClassifier

Peace and Blessing upon you,

Please, I want to know the difference between the cascade classifier for C++ and C API ?
I had a test code with both, and the one for C++ "CascadeClassifier" was very accurate while the other "cvHaarCascadeClassifier" got a very confusing detections and representations as well

Note: I was working for mac_OSX on XCode , is there is a dependency that made the results differ !

  • I was on opencv version 2.4.2 , but it's not the main idea for sure ...

CascadeClassifier VS. cvHaarCascadeClassifier

Peace and Blessing upon you,

Please, I want to know the difference between the cascade classifier for C++ and C API ?
I had a test code with both, and the one for C++ "CascadeClassifier" was very accurate while the other "cvHaarCascadeClassifier" got a very confusing detections and representations as well

Here are 2 sample images as a result for each classifier

The cvHaarCascadeClassifier - C API - :

image description

The CascadeClassifier - C++ API - :

image description

Note: I was working for mac_OSX on XCode , is there is a dependency that made the results differ !

  • I was on opencv version 2.4.2 , but it's not the main idea for sure ...