Python OpenCV Facial Detection On OSX

By | March 6, 2014

Just a code snippet to demo Python script using OpenCV

Installation:

  1. pip install numpy (sometimes you might need to run as sudo)
  2. brew tap homebrew/science
  3. brew install opencv
  4. export PYTHONPATH=/usr/local/Cellar/opencv/2.4.7.1/lib/python2.7/site-packages/
  5. download the xml file https://warai.googlecode.com/files/haarcascade_frontalface_alt.xml and place it in the same folder.

Leave a Reply

Your email address will not be published. Required fields are marked *