Example #1
0
def genNpic( filename, num ):
  pic = zeroPic()
  for picList,index in izip(pictureOffsetG(filename), xrange(1000)):
    pic = addPic( pic, absPic( picList ) )
    if index % num == num-1:
      yield pic, index
      pic = zeroPic()
Example #2
0
def zeroPic():
  return absPic([])