Found bug in CascadeClassifier what do I do next ?

asked 2015-06-18 10:33:32 -0600

paulsc167 gravatar image

updated 2015-06-24 12:53:54 -0600

Hello everyone,

I believe I've found a bug with the CascadeClassifier, I would like to report it but wanted to check in here first.

I'm running Opencv 3.0.0 on Mac 10.10.3.

Quick description:

  1. initialize CascadeClassifier with haarcacscade_profileface.xml
  2. call detectMultiScale on roi in image to detect a first face (works as expected)
  3. call detectMultiScale on same classifier instance, different roi to detect another face (doesn't work as expected, rectangle is offset to the top right)

Note that if I re-instantiate the classifier and use a fresh instance between step 2 and 3, the classifier works as expected and properly detects the face in step 3. That's what's leading me to believe this is a bug.

Full code used to reproduce the issue is here: https://gist.github.com/paulsc/b91b75...

bug: opencv-bug.jpg

no bug (re-initializing classifier): opencv-nobug.jpg

orignal file: bug-equed.jpg

Can anyone confirm this is an issue? What are the next steps to report this ?

Thanks,

Paul

edit retag flag offensive close merge delete

Comments

helo, it's probably a good idea to add your os / opencv version to your question.

berak gravatar imageberak ( 2015-06-18 10:43:25 -0600 )edit

Thanks, just did.

paulsc167 gravatar imagepaulsc167 ( 2015-06-18 10:48:16 -0600 )edit

sorry, can't reproduce.

[[64 66 61 61]] [[68 50 75 75]]

berak gravatar imageberak ( 2015-06-19 00:22:09 -0600 )edit

Interesting. I wonder if it's platform specific. What environment are you running ?

paulsc167 gravatar imagepaulsc167 ( 2015-06-22 07:47:49 -0600 )edit

win, opencv3.0

also, sorry, it seems we edited at the same time recently, and i overwrote your changes, could you add your os/version details again, please ?

berak gravatar imageberak ( 2015-06-22 08:06:24 -0600 )edit

ok, just did.

paulsc167 gravatar imagepaulsc167 ( 2015-06-24 12:54:30 -0600 )edit