Changeset 36 for foam/trunk
- Timestamp:
- 03/30/2009 03:06:17 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
foam/trunk/simple-faceident/README
r27 r36 2 2 -------------------------- 3 3 4 Uses OpenCV's face finder to record and detect identity. Sends bottles over5 yarp on port /faceident containing the ID and confidence value.4 A simple approach to face identification, built on top of OpenCV and given a 5 YARP network interface. 6 6 7 Use the number keys to train the system against different individuals. The idea 8 is that one by one, individuals show their faces, after which the system will 9 recognise who is who in the camera's view. The program will avoid recording 10 faces which are too similar to existing recorded ones. Press 'd' to switch to 11 switch off the training and just detect against existing faces. The boxes 12 around the faces display the id and the confidence value of the match. 7 The program has two modes of operation. The first is calibration, where each 8 user must show their face to the camera separately - press the number keys to 9 assign each user with a different ID. You can see which face is mapped to 10 which ID at the bottom of the window. 13 11 14 Requires: OpenCV 15 Written and tested on Linux, but it should work in Windows too. 16 At the moment you'll probably have to run it with: 12 The second mode of operation is face detection, where each visible detected 13 face is given an ID based on it's closest match (within a given error 14 threshold) with the faces recorded during calibration. The boxes drawn around 15 the faces display the id and the confidence value of the match. When in this 16 mode the program sends the following YARP messages: 17 17 18 simple-faceident --cascade=/path/to/haarcascade_frontalface_alt.xml 18 Port Bottle contents Meaning 19 /faceident "user appeared" ID confidence A user has entered the view of the camera 20 /faceident "user disappeared" ID The user has left the camera view 19 21 20 In order to find OpenCV's data, on my machine it's in: 22 Key Meaning 23 0-9 number keys Calibrate a given id against a face in the scene 24 d Start detect mode, which will send YARP messages 25 c Clear all faces in the database 26 27 Requires: OpenCV, YARP 28 29 Written and tested on Linux, but it should work in Windows too. At the moment 30 you'll probably have to run it with: 31 32 simple-faceident -cascade=/path/to/haarcascade_frontalface_alt.xml 33 34 In order to find OpenCV's data, on my machine it's in: 21 35 /usr/local/share/opencv/haarcascades/haarcascade_frontalface_alt.xml 22 36 23 37 Todo: 24 * Command line parameters25 * YARP interface26 38 * Try normalised cross correlation instead of image differencing 27 39
Note: See TracChangeset
for help on using the changeset viewer.