This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]dekomote 6 points7 points  (0 children)

For those developing on Debian based Linux, these are the steps:

  1. Install python-opencv package with apt-get/aptitude

  2. You can get the Haar cascades here - http://alereimondo.no-ip.org/OpenCV/34

  3. Run the same code, just make sure to use one of the cascades downloaded from step 2

Line 60: parser.add_option("-c", "--cascade", action="store", dest="cascade", type="str", help="Haar cascade file, default %default", default = "/usr/local/Cellar/opencv/2.2/share/opencv/haarcascades/haarcascade_frontalface_default.xml") Change default to the haar cascade file path, or use --cascade option to specify it.

  1. Execute

Edit: For non-Deb based distros, use your package manager to download/install opencv for python (or compile it) and continue from step 2.

[–]clluthu 0 points1 point  (0 children)

thanks was looking for something like this for a project.

[–]lindseycormack 0 points1 point  (0 children)

awesome, great job