New-style haar cascades pattern size mismatch (Bug #3637)
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
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 master: https://github.com/Itseez/opencv/pull/3661
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.