|
Images
This sample code demonstrates a working face recognition engine based on
Eigenfaces. To run this code you need:
Obtaining images from your cameraThe eigenface engine requires a set of images to detect against. You can use this modified DataSourceReader.java (or the ZIP file the required libraries. To use this capture program, make sure you have Java and JMF installed and do:
java DataSourceReader -monitor vfw://0
(The vfw://0 is the URL for your camera. You can find out which URL your camera has by running JMFRegistry and looking for the value of Locator).
Face RecognitionMake sure you have Jama-1.0.1.jar in your CLASSPATH, then just run:
(The c:\konrad\images is where I stored the JPG images used to compare against.
SourceDownload the source zip file.DebugIn theEigenFaceComputation.java if you uncomment line 92,93,107, and 125, you can see the graphical output
of the image during the face recognition process (and also save it).
|
![]() ![]() ![]() ![]()
|