diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2012-02-22 21:30:15 -0800 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2012-02-22 21:30:15 -0800 |
| commit | 0f71468c400e40ca9180a177b68f895aae0be90e (patch) | |
| tree | 342bde4bce990f4078e409b6559d60a5f339a267 /data/combined/combo.py | |
| parent | 8f600aa7382e86ba78167af7d4ed417ddf05ba49 (diff) | |
| parent | cc5c7492c60033b7efa817ef67d6b35792537ed0 (diff) | |
| download | kinect-0f71468c400e40ca9180a177b68f895aae0be90e.tar.gz | |
Merge branch 'master' of paloalto.thlab.net:kinect-eccv12
Diffstat (limited to 'data/combined/combo.py')
| -rwxr-xr-x | data/combined/combo.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/data/combined/combo.py b/data/combined/combo.py new file mode 100755 index 0000000..bd21274 --- /dev/null +++ b/data/combined/combo.py @@ -0,0 +1,21 @@ +#!/usr/bin/python +import os +import sys +import pickle + +runs = [] +names = pickle.load(open(sys.argv[1])) +labels = '' +dirs = ['24-1-2012-16-56-57','27-1-2012-10-45-29'] +for arg in sys.argv[2:]: + run = open(arg) + labels = run.readline().strip('#').strip() + runs += [[run, arg.split('/')[-2]]] + +print '#dir,'+labels +for lines, sub_dir in runs: + for line in lines: + line = line.strip().split(',') + line[0] = str(names.index(line[0]) + 1) + line.insert(0,str(dirs.index(sub_dir) + 1)) + print ','.join(line) |
