Example #1
0
def testLab6():
  # Uncomment lines to best tested

  # Make sure LAB_DIR is set to the correct directory
  backgrounds = getPicList(LAB_DIR + "\\Green Screen\\Backgrounds") 
  greenScreens = getPicList(LAB_DIR + "\\Green Screen\\Original")
  for p in greenScreens:
    for b in backgrounds:
      pic = chromakey(p,b)
      show(pic)
      #writePictureTo(pic, LAB_DIR + "Green Screen\\" + datetime.now().strftime('%Y-%m-%d-%H%M%S') + ".jpg")
         
  removeRedEye()
  recolorEye()
  
  pic = makePicture(pickAFile())
  sepia(pic)
  show(pic)
  
  pic = makePicture(pickAFile())
  artify(pic)
  show(pic)
Example #2
0
def testLab5():
  pics = getPicList()
  collage = makeCollage(pics)