About Haar cascade detector generating

asked 2013-03-22 02:26:37 -0600

godspeed gravatar image

updated 2013-03-22 06:59:43 -0600

A question about feature generating.

In file apps/traincascade/haarfeatures.cpp

Line 145 - 158

The haar_3 horizontal feature should like this:

+-----+-----+-----+
| -1  |  1  |  -1 |
+-----+-----+-----+

The code to generate haar_3 feature is

148  features.push_back( Feature( offset, false,
149                         x, y, dx*3, dy, -1,
150                         x+dx, y, dx  , dy, +3 ) );

I think the +3 should be +2.

Who could answer me????
Thanks a lot!
edit retag flag offensive close merge delete

Comments

Please submit a ticket at http://code.opencv.org/projects/opencv/issues then the developers will check it.

Guanta gravatar imageGuanta ( 2013-03-23 08:33:35 -0600 )edit