source: foam/trunk/python/expression.py @ 113

Revision 113, 437 bytes checked in by dave, 11 years ago (diff)

first pass expression recgn

  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2
3import glob,string
4from vision import *
5from faces import *
6       
7#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8
9#build_expression_pca("../no-redist/yalefaces/processed/*.png",20,30,"expr.pca")
10
11#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
12
13pca = PCA(1)   
14f = OpenFile("expr.pca", "rb")
15pca.Load(f)
16CloseFile(f)
17
18emotion_from_expression("../data/images/faces/dave/expression/normal.png",20,30,pca)
Note: See TracBrowser for help on using the repository browser.