New-style haar cascades pattern size mismatch (Bug #3637)


Added by Alex Melnikov almost 11 years ago. Updated about 10 years ago.


Status:Done Start date:2014-04-08
Priority:Normal Due date:
Assignee:Alex Melnikov % Done:

0%

Category:objdetect
Target version:-
Affected version:branch 'master' (3.0-dev) Operating System:Windows
Difficulty:Easy HW Platform:x86
Pull request:

Description

Hi!
I have found that in all new-style *.xml files at (i.e.):

...
<opencv_storage>
<cascade type_id="opencv-cascade-classifier"><stageType>BOOST</stageType>
<featureType>HAAR</featureType>
<height>25</height>
<width>15</width>
...

height and width values are reversed. So, detection works in wrong way. If i swap this values then all stuff becomes correct. (Btw, for frontal face detection all works fine because of square area :) )


Associated revisions

Revision bdebf4ce
Added by Vadim Pisarevsky about 10 years ago

Merge pull request #3637 from wangyan42164:LBP_mad24_opt

History

Updated by Dmitry Retinskiy almost 11 years ago

Hi Alex,

thanks for the analysis. It would be appreciated if you could submit the fix via pull request.
See here for instructions: http://www.code.opencv.org/projects/opencv/wiki/How_to_contribute.
Thanks.

  • Assignee changed from Vadim Pisarevsky to Alex Melnikov
  • Status changed from New to Open

Updated by Steven Puttemans almost 11 years ago

Besides fixing it, we should look also if the creation of models is wrong or if the conversion of models was wrong in order to evade these problems in the future.

Updated by Steven Puttemans about 10 years ago

PR for 2.4 https://github.com/Itseez/opencv/pull/3662

my guess probably something went wrong when switching from old model structure to new model structure.

Updated by Steven Puttemans about 10 years ago

Both fixes merged!

  • Status changed from Open to Done

Also available in: Atom PDF