
import sys
from photos import photos

#facemap = {}
#facemap['bryan'] = []
#facemap['amy'] = []
#facemap['shyam'] = []
#facemap['other'] = []

for photo in photos:
	for face in photo.faces:
		print face
#	found = 0
#	if len(photo.faces) == 1:
#		if 'bryan' in photo.keywords:
#			found = 1
#			facemap['bryan'] = facemap['bryan'] + photo.faces
#		if 'amy' in photo.keywords:
#			found = 1
#			facemap['amy'] = facemap['amy'] + photo.faces
#		if 'shyam' in photo.keywords:
#			found = 1
#			facemap['shyam'] = facemap['shyam'] + photo.faces
#		if found == 0:
#			facemap['other'] = facemap['other'] + photo.faces

#print '\t'.join(facemap['bryan'])
#print '\t'.join(facemap['amy'])
#print '\t'.join(facemap['shyam'])
#print '\t'.join(facemap['other'])

sys.exit(0)

print '<html><body>'
for c in ['bryan','amy','shyam','other']:
	print c + ':<br />'
	print '\n'.join(['<img src="/perception/working/%s" />' % x for x in facemap[c]])
	print '<br>'
print '</body></html>'

