Skip to content
Snippets Groups Projects
Commit 2fcc4d78 authored by Manuel Günther's avatar Manuel Günther
Browse files

Added the requirement of Bob version 1.0.3

parent 4ba616d2
No related branches found
No related tags found
No related merge requests found
...@@ -13,6 +13,9 @@ have a Bob version yet, you can get it from: ...@@ -13,6 +13,9 @@ have a Bob version yet, you can get it from:
http://idiap.github.com/bob/ http://idiap.github.com/bob/
If you already have installed Bob, please make sure that you have at least
the version 1.0.3, otherwise the example won't work.
The AT&T image database is quite small, but sufficient to show how the face The AT&T image database is quite small, but sufficient to show how the face
verification methods work. Still, the results may not be meaningful. One good verification methods work. Still, the results may not be meaningful. One good
thing about the AT&T database is that it is freely available. You can download thing about the AT&T database is that it is freely available. You can download
......
...@@ -85,6 +85,15 @@ def main(): ...@@ -85,6 +85,15 @@ def main():
print "Training PCA machine" print "Training PCA machine"
pca_machine = train(training_images) pca_machine = train(training_images)
# extract the first eigenvector
projection_matrix = pca_machine.weights
eigen_image = projection_matrix[:,0]
# reshape the eigenvector to the right image resolution
eigen_image.shape = (112,92)
# show the first eigenface
pyplot.imshow(eigen_image, cmap = 'gray')
pyplot.show()
##################################################################### #####################################################################
### extract eigenface features of model and probe images ### extract eigenface features of model and probe images
......
...@@ -36,7 +36,7 @@ recipe = local.bob.recipe:config ...@@ -36,7 +36,7 @@ recipe = local.bob.recipe:config
; If you go for a relative path, remember this path is relative to the path ; If you go for a relative path, remember this path is relative to the path
; you are calling buildout from. This is normally the path that contains the ; you are calling buildout from. This is normally the path that contains the
; file 'setup.py' for your own package. ; file 'setup.py' for your own package.
install-directory = ../bob/build install-directory = /scratch/mguenther/Bob/cmake/trunk
; Some examples for Idiap: ; Some examples for Idiap:
;install-directory = /idiap/group/torch5spro/releases/bob-1.0.2/install/linux-x86_64-release ;install-directory = /idiap/group/torch5spro/releases/bob-1.0.2/install/linux-x86_64-release
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment