As part of your OpenCV setup, you probably have a directory called haarcascades
. It contains cascades that are trained for certain subjects using tools that come with OpenCV. The directory's full path depends on your system and method of setting up OpenCV, as follows:
Build from source archive:
<unzip_destination>/data/haarcascades
Windows with self-extracting ZIP:
<unzip_destination>/data/haarcascades
Mac with MacPorts:
/opt/local/share/OpenCV/haarcascades
Mac with Homebrew: The
haarcascades
file is not included; to get it, download the source archiveUbuntu with apt or Software Center: The
haarcascades
file is not included; to get it, download the source archive
Tip
If you cannot find haarcascades
, then download the source archive from http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.3/OpenCV-2.4.3.tar.bz2/download (or the Windows self-extracting ZIP from http://sourceforge.net/projects/opencvlibrary/files/opencv-win/2.4.3/OpenCV...