Getting Haar cascade data
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 archive - Ubuntu 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 ...
Get OpenCV: Computer Vision Projects with Python now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.