Haar Cascade Visualizer

haarcascade_frontalface_default

Open source app for visualizing Haar cascade files used for object detection

Download: Mac version | PC Version (both include application and source code)

The Haar cascade visualizer takes input from the OpenCV (type_id=”opencv-haar-classifier”) formatted XML files used for object detection and outputs each stage of the cascade as a separate TIF file. A set of cascade files ships with OpenCV, which can be download from WillowGarage

Haar Cascade Visualizer Screenshot

Features

  • Outputs all stages as .tif files
  • Option for creating preview of 1st feature for each stage (much faster)
  • Runs on Mac, should run on Windows (not tested yet)

Edit Source Code To:

  • Change margins, max width, and images per row
  • Change output type from TIF to JPG
  • Change background image

Notes

  • Feel free to use for any project
  • Email if you like it or have a great cascade to share
  • NB: Some cascades have stages with a lot of features. If you’re using a large cascade be prepared for high CPU usage.
  • Built with Processing
 Trackback
 
All content © 2003-2010 Adam Harvey All Rights Reserved | Contact