comparison scripts/imgbg_test.py @ 142:bb26c12bb9f6

Added other auxiliary files corruption tests
author boulanni <nicolas_boulanger@hotmail.com>
date Tue, 23 Feb 2010 14:15:47 -0500
parents
children
comparison
equal deleted inserted replaced
141:3346fcd3818b 142:bb26c12bb9f6
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