comparison scripts/imgbg_test.py @ 144:c958941c1b9d

merge
author XavierMuller
date Tue, 23 Feb 2010 18:16:55 -0500
parents bb26c12bb9f6
children
comparison
equal deleted inserted replaced
143:f341a4efb44a 144:c958941c1b9d
1 #!/usr/bin/python
2
3 import Image, cPickle
4
5 f=open('/Tmp/image_net/filelist.pkl')
6 image_files = cPickle.load(f)
7 f.close()
8
9 for i in range(len(image_files)):
10 filename = '/Tmp/image_net/' + image_files[i]
11 try:
12 image = Image.open(filename).convert('L')
13 except:
14 print filename
15