Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

There is all code you available.

Haartraining.exe is compiled from /OpenCV/apps/haartraining/haartraining.cpp

In the main of that file there is a call to the real function used to build it that is:

 cvCreateTreeCascadeClassifier( dirname, vecname, bgname,
                           npos, nneg, nstages, mem,
                           nsplits,
                           minhitrate, maxfalsealarm, weightfraction,
                           mode, symmetric,
                           equalweights, width, height,
                           boosttype, stumperror,
                           maxtreesplits, minpos, bg_vecfile );

There is all code you need available.

Haartraining.exe is compiled from /OpenCV/apps/haartraining/haartraining.cpp

In the main of that file there is a call to the real function used to build it that is:

 cvCreateTreeCascadeClassifier( dirname, vecname, bgname,
                           npos, nneg, nstages, mem,
                           nsplits,
                           minhitrate, maxfalsealarm, weightfraction,
                           mode, symmetric,
                           equalweights, width, height,
                           boosttype, stumperror,
                           maxtreesplits, minpos, bg_vecfile );

There is all code you need available.

Haartraining.exe is compiled from /OpenCV/apps/haartraining/haartraining.cpp

In the main of that file there is a call to the real function used to build it that is:it, example:

 cvCreateTreeCascadeClassifier( dirname, vecname, bgname,
                           npos, nneg, nstages, mem,
                           nsplits,
                           minhitrate, maxfalsealarm, weightfraction,
                           mode, symmetric,
                           equalweights, width, height,
                           boosttype, stumperror,
                           maxtreesplits, minpos, bg_vecfile );

There is all code you need available.

Haartraining.exe is compiled from /OpenCV/apps/haartraining/haartraining.cpp

In the main of that file there is a call to the real function used to build it, example:

 cvCreateTreeCascadeClassifier( dirname, vecname, bgname,
                           npos, nneg, nstages, mem,
                           nsplits,
                           minhitrate, maxfalsealarm, weightfraction,
                           mode, symmetric,
                           equalweights, width, height,
                           boosttype, stumperror,
                           maxtreesplits, minpos, bg_vecfile );

All the source code of this function can be found in OpenCV/modules/objdetect/src/haar.cpp

There is all code you need available.

Haartraining.exe is compiled from /OpenCV/apps/haartraining/haartraining.cpp

In the main of that file there is a call to the real function used to build it, example:

It based all functions from  cvCreateTreeCascadeClassifier( dirname, vecname, bgname,
                           npos, nneg, nstages, mem,
                           nsplits,
                           minhitrate, maxfalsealarm, weightfraction,
                           mode, symmetric,
                           equalweights, width, height,
                           boosttype, stumperror,
                           maxtreesplits, minpos, bg_vecfile );

All the source code of this function can be found in OpenCV/modules/objdetect/src/haar.cpp/OpenCV/apps/haartraining/cvhaartraining.cpp