Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

About Haar cascade detector generating

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!

About Haar cascade detector generating

A question about feature generating. In file apps/traincascade/haarfeatures.cpp Line 145 - 158

The haar_3 horizontal feature should like this: 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!

About Haar cascade detector generating

A question about feature generating. 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!

lot!