Skip to content

Commit

Permalink
Adding the sample files for the face recognition
Browse files Browse the repository at this point in the history
  • Loading branch information
benosteen committed Mar 3, 2010
0 parents commit 38736be
Show file tree
Hide file tree
Showing 6 changed files with 87,961 additions and 0 deletions.
34 changes: 34 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
Face recognition via webcam images demo
--------------------------------------------

Just a simple script bringing together a number of techniques, files, tips etc from all over.

References:

Haar trained XML tree maps from here:
http://tutorial-haartraining.googlecode.com/svn/trunk/data/haarcascades/

OpenCV python cheatsheet:
http://opencv.willowgarage.com/wiki/PythonInterface

Rough detect-faces code from here:
http://creatingwithcode.com/howto/face-detection-in-static-images-with-python/

And PyGame is just a handy dandy toolset that I've used a number of times in the past. (I tend to use Processing when interacting with things in C)

Dependancies
------------

sudo apt-get install python-opencv python-pygame python-imaging

(SWIG-based bindings for OpenCV, PyGame and PIL - the python Imaging library)

Running
-------

Running the code unaltered will run the face detection algorithm on the demo.jpg file
and use the pygame loop to display it in a window.

python pygame_face.py

To see the webcam demo, make sure your webcam is detected under linux and then alter the section of the pygame_face.py file where it says # UNCOMMENT [...] and run it again.
Binary file added demo.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 38736be

Please sign in to comment.