Object Detection Tutorial
Object Detection Tutorial
<
>
=
threshold f if
threshold f if
x h
i
i
i
1
1
) (
Adaboost Learning
) ... (
2 2 1 1 n n
h w h w h w sign F + + + =
<
>
=
i i
i i
i
f if
f if
x h
u
u
1
1
) ( , where
The more distinctive the feature, the larger the weight.
Detector in Intel OpenCV
1. Collect a database of positive samples and a
database of negative samples.
2. Mark object by objectmarker.exe
3. Build a vec file out of positive samples using
createsamples.exe
4. Run haartraining.exe to build the classifier.
5. Run performance.exe to evaluate the
classifier.
6. Run haarconv.exe to convert classifier to .xml
file
Links
Original paper:
http://research.microsoft.com/~viola/Pubs/Detect/violaJones_C
VPR2001.pdf
How-to build a cascade of boosted classifiers based on Haar-
like features:
http://lab.cntl.kyutech.ac.jp/~kobalab/nishida/opencv/OpenCV_
ObjectDetection_HowTo.pdf
Objectmarker.exe and haarconv.exe, *.dll:
http://www.iem.pw.edu.pl/~domanskj/haarkit.rar