diff options
| author | Jon Whiteaker <jbw@jon-Latitude-D630> | 2012-02-20 13:33:50 -0800 |
|---|---|---|
| committer | Jon Whiteaker <jbw@jon-Latitude-D630> | 2012-02-20 13:33:50 -0800 |
| commit | dc57d539f6dc26fabfaf26935ace3ea07aa49965 (patch) | |
| tree | 5a61e853fccc9dc51bfc0be246fb358f30dee68c /data/branoify.py | |
| parent | 0c5477cc00e1e8877066f66f371426e3c6ef55fe (diff) | |
| download | kinect-dc57d539f6dc26fabfaf26935ace3ea07aa49965.tar.gz | |
combined data plus face rec
Diffstat (limited to 'data/branoify.py')
| -rwxr-xr-x | data/branoify.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/data/branoify.py b/data/branoify.py new file mode 100755 index 0000000..6f181d9 --- /dev/null +++ b/data/branoify.py @@ -0,0 +1,14 @@ +#!/usr/bin/python +import sys +import pickle + +names = pickle.load(open(sys.argv[2])) +dirs = ['24-1-2012-16-56-57','27-1-2012-10-45-29'] +for line in open(sys.argv[1]): + line = line.strip().split(',') + if line[1] != 'name': + line[0] = str(dirs.index(line[0]) + 1) + line[1] = str(names.index(line[1]) + 1) + print ','.join(line) + + |
