Ask Your Question
0

CascadeClassifier VS. cvHaarCascadeClassifier

asked 2013-06-16 03:06:03 -0600

Adwa gravatar image

updated 2013-06-16 06:59:03 -0600

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 ...
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2013-06-16 12:52:28 -0600

Hansg91 gravatar image

Internally they both do the same thing, but cvHaarCascadeClassifier is the C interface and cv::CascadeClassifier is the c++ interface. I am guessing that your cvHaarCascadeClassifier is having problems with some error in your image, perhaps something with wrong channels or data type. It should be practically the same as cv::CascadeClassifier.

edit flag offensive delete link more

Comments

The same image I send it to both classifiers ! Thanks for replying

Adwa gravatar imageAdwa ( 2013-06-17 06:25:30 -0600 )edit

Perhaps you could post your code so we can see what might be wrong?

Hansg91 gravatar imageHansg91 ( 2013-06-18 02:59:19 -0600 )edit

Question Tools

1 follower

Stats

Asked: 2013-06-16 03:06:03 -0600

Seen: 424 times

Last updated: Jun 16 '13