1 / 9

A Tutorial on Object Detection Using OpenCV

A Tutorial on Object Detection Using OpenCV. Introduction. The goal of object detection is to find an object of a pre-defined class in a static image or video frame. Methods. Simple objects Extracting certain image features, such as edges, color regions, textures, contours, etc.

awen
Download Presentation

A Tutorial on Object Detection Using OpenCV

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. A Tutorial on Object Detection Using OpenCV

  2. Introduction • The goal of object detection is to find an object of a pre-defined class in a static image or video frame.

  3. Methods • Simple objects Extracting certain image features, such as edges, color regions, textures, contours, etc. • Complex objects Learning-based method: Viola and Jones, “Rapid object detection using a boosted cascade of simple features”, CVPR 2001

  4. Statistical model-based training • Take multiple “positive” samples, i.e., objects of interest, and “negative” samples, i.e., images that do not contain objects. • Different features are extracted from samples and distinctive features are “compressed” into the statistical model parameters. • It is easy to make an adjustment by adding new positive or negative samples.

  5. Haar-like Features

  6. Example • Feature’s value is calculated as the difference between the sum of the pixels within white and black rectangle regions.

  7. Adaboost Learning The more distinctive the feature, the larger the weight.

  8. Detector in Intel OpenCV • Collect a database of positive samples and a database of negative samples. • Mark object by objectmarker.exe • Build a vec file out of positive samples using createsamples.exe • Run haartraining.exe to build the classifier. • Run performance.exe to evaluate the classifier. • Run haarconv.exe to convert classifier to .xml file

  9. Links • Original paper:http://research.microsoft.com/~viola/Pubs/Detect/violaJones_CVPR2001.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

More Related